When I run
$ kubectl logs <container>
I get the logs of my pods.
But where are the files for those logs?
Some sources says /var/log/containers/
others says /var/lib/docker/containers/
but I couldn't find my actual application's or pod's log.
When I run
$ kubectl logs <container>
I get the logs of my pods.
But where are the files for those logs?
Some sources says /var/log/containers/
others says /var/lib/docker/containers/
but I couldn't find my actual application's or pod's log.
You can see the log file path using:
docker inspect --format='{{.LogPath}}' $INSTANCE_ID