Where are the log files located in the Graylog server Docker container?

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?

  • Configure docker repo with https without domain name
  • Install OpenCV in a Docker container
  • Installing OpenShift as Docker image behind nginx
  • Gitlab links to “https://gitlab/”
  • Node.js + Docker Compose: node_modules disappears
  • Not able to connect to Docker container on Windows
  • How to get my docker centos sshd passwordless server running?
  • Automatically Stopping/Restarting a Phusion Passenger Docker container
  • docker command attach running slow
  • Docker build failed because of “port 443: Connection timed out”
  • Running eval in Jenkins execute shell
  • java.net.SocketException when accessing docker host
  • 2 Solutions collect form web for “Where are the log files located in the Graylog server Docker container?”

    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.

    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

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.