-
Notifications
You must be signed in to change notification settings - Fork 183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Logs from two different containers of one pod show up in Sumo as coming from one of the containers #2862
Comments
I think this is due to us asking Since we're guaranteed to have the container name here, we should just remove this option. |
Fixes #2862 The `containerName` metadata extraction gives incorrect results for pods with more than one containers. We don't need this extraction anyway, because container logs already have the `k8s.container.name` attribute from log file name.
Fixes #2862 The `containerName` metadata extraction gives incorrect results for pods with more than one containers. We don't need this extraction anyway, because container logs already have the `k8s.container.name` attribute from log file name.
Fixes #2862 The `containerName` metadata extraction gives incorrect results for pods with more than one containers. We don't need this extraction anyway, because container logs already have the `k8s.container.name` attribute from log file name.
Fixes #2862 The `containerName` metadata extraction gives incorrect results for pods with more than one containers. We don't need this extraction anyway, because container logs already have the `k8s.container.name` attribute from log file name.
Fixes #2862 The `containerName` metadata extraction gives incorrect results for pods with more than one containers. We don't need this extraction anyway, because container logs already have the `k8s.container.name` attribute from log file name.
Fixes #2862 The `containerName` metadata extraction gives incorrect results for pods with more than one containers. We don't need this extraction anyway, because container logs already have the `k8s.container.name` attribute from log file name.
Version:
v3.0.1
Kubernetes: v1.25.3
Container runtime: containerd
I have a pod that has two containers in it. I'm seeing the same
_sourceName
value andcontainer
value for logs from both containers, but I would expect them to be different.Steps to reproduce
Create a k8s cluster with e.g.
minikube start --kubernetes-version=1.25.3 --container-runtime=containerd
Create a pod with two containers
Install collection chart with
helm install -n sumo --create-namespace col sumologic/sumologic --version=3.0.1 --values user-values.yaml
with the following values file:Expected output
Logs from
multiline
container should be logged withcontainer=multiline
, logs fromsingleline
container should be logged withcontainer=singleline
Actual output
Logs from both containers are logged with
container=singleline
The text was updated successfully, but these errors were encountered: