Skip to content

Commit 5271d83

Browse files
authored
Add processors setting for k8s data_streams (#4363)
1 parent 064ca2d commit 5271d83

File tree

54 files changed

+365
-6
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+365
-6
lines changed

packages/kubernetes/changelog.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
# newer versions go on top
2+
- version: "1.26.0"
3+
changes:
4+
- description: Add `processors` configuration option for Kubernetes data_streams
5+
type: enhancement
6+
link: https://github.com/elastic/integrations/pull/4363
27
- version: "1.25.0"
38
changes:
49
- description: Add `condition` configuration option to container logs data stream

packages/kubernetes/data_stream/apiserver/agent/stream/stream.yml.hbs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,8 @@ ssl.certificate_authorities:
1616
- {{this}}
1717
{{/each}}
1818
{{/if}}
19+
20+
{{#if processors}}
21+
processors:
22+
{{processors}}
23+
{{/if}}

packages/kubernetes/data_stream/apiserver/manifest.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,13 @@ streams:
4040
show_user: true
4141
default:
4242
- /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
43+
- name: processors
44+
type: yaml
45+
title: Processors
46+
multi: false
47+
required: false
48+
show_user: false
49+
description: >
50+
Processors are used to reduce the number of fields in the exported event or to enhance the event with metadata. This executes in the agent before the events are shipped. See [Processors](https://www.elastic.co/guide/en/beats/filebeat/current/filtering-and-enhancing-data.html) for details.
4351
title: Kubernetes API Server metrics
4452
description: Collect Kubernetes API Server metrics

packages/kubernetes/data_stream/audit_logs/agent/stream/stream.yml.hbs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,6 @@ processors:
3838
throw "expected kubernetes.audit.annotations.authorization_k8s_io/decision === allow";
3939
}
4040
}
41+
{{#if processors}}
42+
{{processors}}
43+
{{/if}}

packages/kubernetes/data_stream/audit_logs/manifest.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,11 @@ streams:
1818
multi: true
1919
default:
2020
- /var/log/kubernetes/kube-apiserver-audit.log
21+
- name: processors
22+
type: yaml
23+
title: Processors
24+
multi: false
25+
required: false
26+
show_user: false
27+
description: >
28+
Processors are used to reduce the number of fields in the exported event or to enhance the event with metadata. This executes in the agent before the events are shipped. See [Processors](https://www.elastic.co/guide/en/beats/filebeat/current/filtering-and-enhancing-data.html) for details.

packages/kubernetes/data_stream/container/agent/stream/stream.yml.hbs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,8 @@ ssl.certificate_authorities:
1818
- {{this}}
1919
{{/each}}
2020
{{/if}}
21+
22+
{{#if processors}}
23+
processors:
24+
{{processors}}
25+
{{/if}}

packages/kubernetes/data_stream/container/manifest.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,13 @@ streams:
5858
multi: true
5959
required: false
6060
show_user: false
61+
- name: processors
62+
type: yaml
63+
title: Processors
64+
multi: false
65+
required: false
66+
show_user: false
67+
description: >
68+
Processors are used to reduce the number of fields in the exported event or to enhance the event with metadata. This executes in the agent before the events are shipped. See [Processors](https://www.elastic.co/guide/en/beats/filebeat/current/filtering-and-enhancing-data.html) for details.
6169
title: Kubernetes Container metrics
6270
description: Collect Kubernetes Container metrics

packages/kubernetes/data_stream/container_logs/agent/stream/stream.yml.hbs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@ paths:
44
- {{this}}
55
{{/each}}
66
prospector.scanner.symlinks: {{ symlinks }}
7-
{{#if condition}}
8-
condition: {{ condition }}
9-
{{/if}}
107
parsers:
118
- container:
129
stream: {{ containerParserStream }}
1310
format: {{ containerParserFormat }}
1411
{{ additionalParsersConfig }}
12+
13+
{{#if processors}}
14+
processors:
15+
{{processors}}
16+
{{/if}}

packages/kubernetes/data_stream/container_logs/manifest.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,11 @@ streams:
5252
# pattern: '^\['
5353
# negate: true
5454
# match: after
55+
- name: processors
56+
type: yaml
57+
title: Processors
58+
multi: false
59+
required: false
60+
show_user: false
61+
description: >
62+
Processors are used to reduce the number of fields in the exported event or to enhance the event with metadata. This executes in the agent before the events are shipped. See [Processors](https://www.elastic.co/guide/en/beats/filebeat/current/filtering-and-enhancing-data.html) for details.

packages/kubernetes/data_stream/controllermanager/agent/stream/stream.yml.hbs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,9 @@ bearer_token_file: {{bearer_token_file}}
1111
ssl.verification_mode: {{ssl.verification_mode}}
1212
{{/if}}
1313

14-
condition: ${kubernetes.labels.{{~controller_manager_label_key~}} } == '{{controller_manager_label_value}}'
14+
condition: ${kubernetes.labels.{{~controller_manager_label_key~}} } == '{{controller_manager_label_value}}'
15+
16+
{{#if processors}}
17+
processors:
18+
{{processors}}
19+
{{/if}}

0 commit comments

Comments
 (0)