Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions docs/changelog/129074.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pr: 129074
summary: "[apm-data] Set `event.dataset` if empty for logs"
area: Data streams
type: bug
issues: []
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ description: |
custom pipelines. All built-in processing occurs in the final
pipelines.
processors:
# Set event.dataset if unset to meet Anomaly Detection requirements
- set:
if: "ctx.data_stream?.dataset != null"
field: event.dataset
value: "{{{data_stream.dataset}}}"
override: false
# Invoke user-defined custom pipelines, in ascending order of specificity:
- pipeline:
name: global@custom
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ description: |
custom pipelines. All built-in processing occurs in the final
pipelines.
processors:
# Set event.dataset if unset to meet Anomaly Detection requirements
- set:
if: "ctx.data_stream?.dataset != null"
field: event.dataset
value: "{{{data_stream.dataset}}}"
override: false
# Invoke user-defined custom pipelines, in ascending order of specificity:
- pipeline:
name: global@custom
Expand Down
2 changes: 1 addition & 1 deletion x-pack/plugin/apm-data/src/main/resources/resources.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# "version" holds the version of the templates and ingest pipelines installed
# by xpack-plugin apm-data. This must be increased whenever an existing template or
# pipeline is changed, in order for it to be updated on Elasticsearch upgrade.
version: 13
version: 14

component-templates:
# Data lifecycle.
Expand Down
Loading