Skip to content

Commit 011910c

Browse files
committed
[apm-data] Set event.dataset if empty for logs
1 parent ffa423d commit 011910c

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

x-pack/plugin/apm-data/src/main/resources/ingest-pipelines/[email protected]

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ description: |
1010
custom pipelines. All built-in processing occurs in the final
1111
pipelines.
1212
processors:
13+
- set:
14+
if: "ctx.data_stream?.dataset != null"
15+
field: event.dataset
16+
value: "{{{data_stream.dataset}}}"
17+
override: false
1318
# Invoke user-defined custom pipelines, in ascending order of specificity:
1419
- pipeline:
1520
name: global@custom

x-pack/plugin/apm-data/src/main/resources/ingest-pipelines/[email protected]

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ description: |
1010
custom pipelines. All built-in processing occurs in the final
1111
pipelines.
1212
processors:
13+
- set:
14+
if: "ctx.data_stream?.dataset != null"
15+
field: event.dataset
16+
value: "{{{data_stream.dataset}}}"
17+
override: false
1318
# Invoke user-defined custom pipelines, in ascending order of specificity:
1419
- pipeline:
1520
name: global@custom

x-pack/plugin/apm-data/src/main/resources/resources.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# "version" holds the version of the templates and ingest pipelines installed
22
# by xpack-plugin apm-data. This must be increased whenever an existing template or
33
# pipeline is changed, in order for it to be updated on Elasticsearch upgrade.
4-
version: 13
4+
version: 14
55

66
component-templates:
77
# Data lifecycle.

0 commit comments

Comments
 (0)