Replies: 2 comments 2 replies
-
I think the simplest way, aside from changing your app to write to stdout/stderr which I would recommend, if possible, would be to run Vector as a side-car container to your application container and mount a shared file system between them where the app writes to the log files and Vector can read them. |
Beta Was this translation helpful? Give feedback.
2 replies
-
That doesn't sound like a good fit for me I'll try to implement that with vector |
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.
-
How to collect k8s pod/container log files (not stdout and stderr )?
Like app write logs to container path /app/logs/test.log
I try to use kubernetes_logs, but it seems to only collect logs from /var/log/pods/
k8s container runtime: containerd/docker
Maybe config like:
Found real path like
/var/lib/docker/overlay2/9e048600f8da25798790333d8c0d128ba9a9f5c3110c530239fde2737ec0a1b8/diff/app/logs/xxx.log
Beta Was this translation helpful? Give feedback.
All reactions