Repository navigation
[filebeat][gcs][abs] Fix duplicate event IDs for codec-decoded objects - #54157
Merged
Merged
Conversation
|
💚 CLA has been signed |
Contributor
🤖 GitHub commentsJust comment with:
|
Contributor
|
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
niladrix719
force-pushed
the
fix-gcs-codec-event-ids
branch
from
October 28, 2026 12:06
5208152 to
1ffcc29
Compare
efd6
requested changes
Nov 4, 2026
niladrix719
force-pushed
the
fix-gcs-codec-event-ids
branch
from
November 4, 2026 09:25
1ffcc29 to
46961f4
Compare
Contributor
|
/test |
efd6
approved these changes
Nov 9, 2026
Contributor
|
nit only |
Signed-off-by: Niladri Adhikary <niladrix719@gmail.com>
niladrix719
force-pushed
the
fix-gcs-codec-event-ids
branch
from
November 9, 2026 09:31
46961f4 to
d4df675
Compare
Contributor
|
This pull request is merged. |
Contributor
|
/test |
|
Pinging @elastic/security-service-integrations (Team:Security-Service Integrations) |
This was referenced Nov 15, 2026
[9.5](backport #54157) [filebeat][gcs][abs] Fix duplicate event IDs for codec-decoded objects
#54713
Merged
efd6
pushed a commit
that referenced
this pull request
Nov 15, 2026
#54157) (#54713) The gcs and azure-blob-storage inputs built each event's _id from evtOffset, which was never incremented. Every record decoded by a codec (CSV, Parquet) from the same object therefore got the same _id and log.offset: 0, and Elasticsearch dropped all but the first as duplicates. evtOffset is now incremented after each published event, so it holds the record index. (cherry picked from commit 1ffb1d7) Co-authored-by: Niladri Adhikary <91966855+niladrix719@users.noreply.github.com>
efd6
pushed a commit
that referenced
this pull request
Nov 15, 2026
#54157) (#54714) The gcs and azure-blob-storage inputs built each event's _id from evtOffset, which was never incremented. Every record decoded by a codec (CSV, Parquet) from the same object therefore got the same _id and log.offset: 0, and Elasticsearch dropped all but the first as duplicates. evtOffset is now incremented after each published event, so it holds the record index. (cherry picked from commit 1ffb1d7) Co-authored-by: Niladri Adhikary <91966855+niladrix719@users.noreply.github.com>
efd6
added a commit
that referenced
this pull request
Nov 16, 2026
…for codec-decoded objects (#54712) * [filebeat][gcs][abs] Fix duplicate event IDs for codec-decoded objects (#54157) The gcs and azure-blob-storage inputs built each event's _id from evtOffset, which was never incremented. Every record decoded by a codec (CSV, Parquet) from the same object therefore got the same _id and log.offset: 0, and Elasticsearch dropped all but the first as duplicates. evtOffset is now incremented after each published event, so it holds the record index. (cherry picked from commit 1ffb1d7) # Conflicts: # x-pack/filebeat/input/azureblobstorage/job.go # x-pack/filebeat/input/gcs/job.go * resolve conflict and remove reference to non-existing Parquet --------- Co-authored-by: Niladri Adhikary <91966855+niladrix719@users.noreply.github.com> Co-authored-by: Dan Kortschak <dan.kortschak@elastic.co>
1 of 3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed commit message
The gcs and azure-blob-storage inputs built each event's
_idfromevtOffset, which was never incremented. Every record decoded by a codec (CSV, Parquet) from the same object therefore got the same_idandlog.offset: 0, and Elasticsearch dropped all but the first as duplicates.evtOffsetis now incremented after each published event, so it holds the record index.Checklist
stresstest.shscript to run them under stress conditions and race detector to verify their stability../changelog/fragmentsusing the changelog tool.How to test this PR locally
The new unique-ID assertions fail on
mainand pass with this change.Related issues
_id, only the first line of each object is indexed #53659Use cases
Given a 3-line CSV object in a GCS bucket read with
decoding.codec.csv:log.offset: 0._idandlog.offset.