I am running zeebe broker in docker. the logs are printing in the container logs (docker logs). so i want logs to be in .log file?
Hi @regojoyson, this is what you are looking for: https://docs.docker.com/config/containers/logging/configure/
Additional information that will impact exactly how you implement it:
- What platform are you running on?
- How are you starting the broker? (
docker run
?docker-compose up
?)
You can see where the log files are being stored with this command:
docker inspect -f {{.LogPath}} zeebe_broker
Where zeebe-broker
is the name of your Docker container.
If you are running on a Mac or Windows, then the file path is to the filesystem inside the Moby Ubuntu VM, rather than the local filesystem. To get to that filesystem, you need to run:
docker run -it --rm --privileged --pid=host justincormack/nsenter1
This will open a shell in the Ubuntu VM, and you can see the log file(s) there.
1 Like
Thanks @jwulf.
1 Like