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.x](backport #42412) otelconsumer: set document id attribute for elasticsearchexporter #42535

Merged
merged 1 commit into from
Jan 31, 2025

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Jan 31, 2025

Proposed commit message

In order for beats receivers to support deduplication of data like the normal beats we need to have special handling for the @metadata._id field in the beats event. In the elasticsearch beats output this metadata field is used to set the document id when ingesting the event.

The elasticsearchexporter will support dynamic id for log records in the upcoming v0.119 release via a log record attribute.

This PR adds special handling for the metadata _id field and translates it to the elasticsearch.document_id attribute.

Related issues


This is an automatic backport of pull request #42412 done by [Mergify](https://mergify.com).

…2412)

* otelconsumer: set document id attribute for elasticsearchexporter

* add comment about field being removed from elasticsearch

(cherry picked from commit 04eac62)
@mergify mergify bot added the backport label Jan 31, 2025
@mergify mergify bot requested a review from a team as a code owner January 31, 2025 12:42
@mergify mergify bot requested review from AndersonQ and VihasMakwana and removed request for a team January 31, 2025 12:42
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Jan 31, 2025
@github-actions github-actions bot added cleanup Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team labels Jan 31, 2025
@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Jan 31, 2025
@elasticmachine
Copy link
Collaborator

Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane)

@mauri870 mauri870 requested review from mauri870 and removed request for AndersonQ and VihasMakwana January 31, 2025 13:28
@mauri870 mauri870 enabled auto-merge (squash) January 31, 2025 13:29
@mauri870 mauri870 merged commit d0c2065 into 8.x Jan 31, 2025
143 checks passed
@mauri870 mauri870 deleted the mergify/bp/8.x/pr-42412 branch January 31, 2025 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport cleanup Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants