Replies: 1 comment
-
I found a workaround to use: https://docs.docker.com/engine/logging/log_tags/ |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
As promtail is depricated we are migrating our log collecting infrastructure to otel-collector. We spend quite some time to make it work with our k8s and on-prem setup but now faced with an issue: how to properly collect container's logs which are running in dockerd/controllerd out of k8s setup (in dockerd/containerd daemons).
We can (and it was suggested in several places: (1)) collect logs with something like:
but it seems like container operator is able to pull container name for containers running in k8s and has nothing to do with container names for those which are running just in docker... or am I using it wrong?
I simply do not see any labels being added into log.attributes.
I looked around quite some time and have not found anyone reporting this issue. I think the setup and the "ask" here are reasonable and common. Am I "missing an elephant" and it's something simple everyone know about?
Can someone please help?
Beta Was this translation helpful? Give feedback.
All reactions