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

Prevent indexing of event.received field #11602

Closed
wants to merge 12 commits into from
3 changes: 3 additions & 0 deletions apmpackage/apm/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
- description: Remove unused `processor.event` field from logs data streams
type: enhancement
link: https://github.com/elastic/apm-server/pull/11494
- description: Remove `event.received` fields from logs, metrics and traces data streams
type: bugfix
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
type: bugfix
type: enhancement

There's no bug in apmpackage (mapping and ingest pipeline) itself

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, followed up in cee297b

link: https://github.com/elastic/apm-server/pull/11602
- version: "8.10.0"
changes:
- description: Add permissions to reroute to dedicated datasets for logs, metrics and traces
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,8 @@ processors:
name: observer_ids
- pipeline:
name: ecs_version
- remove:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Even better, define a pipeline like the one in https://github.com/elastic/apm-server/blob/main/apmpackage/cmd/genpackage/pipelines.go#L155 so that it can be reused in multiple ingest pipelines.

field: event.received
ignore_missing: true
ignore_failure: true
description: The field is used for internal statistics but does not need to be indexed.
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,8 @@ processors:
name: client_geoip
- pipeline:
name: set_metrics
- remove:
field: event.received
ignore_missing: true
ignore_failure: true
description: The field is used for internal statistics but does not need to be indexed.
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,8 @@ processors:
if: ctx.error?.log?.message != null
field: error.grouping_name
copy_from: error.log.message
- remove:
field: event.received
ignore_missing: true
ignore_failure: true
description: The field is used for internal statistics but does not need to be indexed.
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,8 @@ processors:
- remove:
field: _dynamic_templates
ignore_missing: true
- remove:
field: event.received
ignore_missing: true
ignore_failure: true
description: The field is used for internal statistics but does not need to be indexed.
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,9 @@ processors:
- service.framework
ignore_missing: true
ignore_failure: true
- remove:
field: event.received
ignore_missing: true
ignore_failure: true
description: The field is used for internal statistics but does not need to be indexed.

Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,8 @@ processors:
value: 0
ignore_failure: true
# end of event.success_count logic
- remove:
field: event.received
ignore_missing: true
ignore_failure: true
description: The field is used for internal statistics but does not need to be indexed.