I'm using the graylog server image from docker hub but I can't find the log files. In the graylog vm they're located under /var/log/graylog
but the location doesn't exist in the graylog server docker image. Where are the log files located in the docker container?
2 Answers
The graylog2/server
Docker image sends logs to stdout and doesn't write them into a log file.
You can use a Docker Logging Driver to configure where these logs should be written to.
-
Thanks, using the syslog driver to look at the logs. Added this to docker compose: Oct 13, 2016 at 8:45
-
logging: driver: "syslog" options: syslog-address: "tcp://127.0.0.1:514" Oct 13, 2016 at 8:45
Looks like log4j is configured only to stdout. Inspecting the Dockerfile I would suggest checking this directory:
/usr/share/graylog/data/log
Also check:
/usr/share/graylog/data/journal
Regards