Skip to content

Commit

Permalink
add container info as part of Kubernetes Logs filestream input
Browse files Browse the repository at this point in the history
This is part of the fix for data duplication that happens when there
are multiple filestream inputs configured with the same ID.

The container ID and pod name are added to the filestream input
ID. The container ID ensure uniquiness and the pod name helps with
debugging.

Issue: elastic/beats#31512
  • Loading branch information
belimawr committed Jul 11, 2022
1 parent 8cf149c commit d46ef82
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions packages/kubernetes/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "1.21.2"
changes:
- description: add container ID and pod name as part of Kubernetes Cotainer Logs filestream input
type: bugfix
link: https://github.com/elastic/integrations/pull/3672
- version: "1.21.1"
changes:
- description: improved the wording of the link to Kubernetes documentation
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
id: kubernetes-container-logs-${kubernetes.pod.name}-${kubernetes.container.id}
paths:
{{#each paths}}
- {{this}}
Expand Down
2 changes: 1 addition & 1 deletion packages/kubernetes/manifest.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
format_version: 1.0.0
name: kubernetes
title: Kubernetes
version: 1.21.1
version: 1.21.2
license: basic
description: Collect logs and metrics from Kubernetes clusters with Elastic Agent.
type: integration
Expand Down

0 comments on commit d46ef82

Please sign in to comment.