diff --git a/packages/kubernetes/changelog.yml b/packages/kubernetes/changelog.yml index eb28cd25f96..1180755c7ec 100644 --- a/packages/kubernetes/changelog.yml +++ b/packages/kubernetes/changelog.yml @@ -1,4 +1,9 @@ # newer versions go on top +- version: "1.25.0" + changes: + - description: Add `condition` configuration option to container logs data stream + type: enhancement + link: https://github.com/elastic/integrations/pull/4324 - version: "1.24.0" changes: - description: Add fields to audit logs data stream diff --git a/packages/kubernetes/data_stream/container_logs/agent/stream/stream.yml.hbs b/packages/kubernetes/data_stream/container_logs/agent/stream/stream.yml.hbs index c6a83c23cd5..34236c7dd3e 100644 --- a/packages/kubernetes/data_stream/container_logs/agent/stream/stream.yml.hbs +++ b/packages/kubernetes/data_stream/container_logs/agent/stream/stream.yml.hbs @@ -4,6 +4,9 @@ paths: - {{this}} {{/each}} prospector.scanner.symlinks: {{ symlinks }} +{{#if condition}} +condition: {{ condition }} +{{/if}} parsers: - container: stream: {{ containerParserStream }} diff --git a/packages/kubernetes/data_stream/container_logs/manifest.yml b/packages/kubernetes/data_stream/container_logs/manifest.yml index 5351524fba7..f8175618a70 100644 --- a/packages/kubernetes/data_stream/container_logs/manifest.yml +++ b/packages/kubernetes/data_stream/container_logs/manifest.yml @@ -31,6 +31,13 @@ streams: multi: false required: true default: auto + - name: condition + title: Condition + description: Condition to filter when to apply this datastream + type: text + multi: false + required: false + show_user: true - name: additionalParsersConfig type: yaml title: Additional parsers configuration diff --git a/packages/kubernetes/manifest.yml b/packages/kubernetes/manifest.yml index 154f76f8503..4d9f5e3b278 100644 --- a/packages/kubernetes/manifest.yml +++ b/packages/kubernetes/manifest.yml @@ -1,7 +1,7 @@ format_version: 1.0.0 name: kubernetes title: Kubernetes -version: 1.24.0 +version: 1.25.0 license: basic description: Collect logs and metrics from Kubernetes clusters with Elastic Agent. type: integration