Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[8.14](backport #39873) Add Offset to libbeat/reader.Message #39992

Merged
merged 2 commits into from
Jun 22, 2024

Commits on Jun 21, 2024

  1. libbeat: add Offset to libbeat/reader.Message (#39873)

    This commit introduces the Offset property to libbeat/reader.Message, which stores the total number of bytes read and discarded before generating the message. The Offset field allows inputs to accurately determine how much data has been read up to the message, calculated as Message.Bytes + Message.Offset.
    
    With this new Offset field, the filestream input correctly updates its state to account for data read but discarded by the include_message parser.
    
    (cherry picked from commit 535a174)
    
    # Conflicts:
    #	filebeat/input/filestream/environment_test.go
    AndersonQ authored and mergify[bot] committed Jun 21, 2024
    Configuration menu
    Copy the full SHA
    de334eb View commit details
    Browse the repository at this point in the history

Commits on Jun 22, 2024

  1. Fixing conflicts

    pierrehilbert committed Jun 22, 2024
    Configuration menu
    Copy the full SHA
    8286d6d View commit details
    Browse the repository at this point in the history