How to get tomcat log from docker container running in atomic host

I am working on Log monitoring, I have requirement of getting tomcat application server logs(example: catalina.log) running in the docker container(container is running in atomic host) and passing it to Logstash server using rsyslog.
I am able to get the docker container related logs, but not able to get the tomcat server and application logs from the docker container where tomcat is running.
Any suggestion on this is appreciated.


  • Using Docker to mimic an existing Production server vs. deploying Docker containers to production?
  • Can't get MLT Framework to process audio in Docker container
  • Is it possible to expose boot2docker ip on local wifi
  • Docker Networking
  • regex string doesn't seem to work in ELK stack
  • Sending docker logs to AWS CloudWatch via Terraform
  • docker compose 3 sysctls directive unsupported
  • Docker - wordpress deployed on Digital Ocean Droplet - where is the wp-content?
  • How do I run shell commands from myApp(python) container in myData(mongodb) container?
  • Exception in thread “main” java.lang.RuntimeException: Failed to reset file system
  • Oracle 11g docker SELECT very slow
  • Specifying Docker daemon host in Elastic Beanstalk
  • One Solution collect form web for “How to get tomcat log from docker container running in atomic host”

    You could mount the local host when initializing the container. You just pass -v flag for mounting to the local host.

    docker run -v /tmp may/

    This will allow you to mount the directory of the tomcat logs to the local host.

    Here is the Docker Docs that talks about it.


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