Docker Logstash Redis Dockerfile

This is a highly configurable Doradus Logstash image running logstash, custom Doradus GEM, Redis and published to the public Docker Hub Registry. The docker container logs are read by mounting the directory containing your Docker data (/var/log/ in the below example) into the containers /host/var/log and stores the sincedb in /logstash/sincedb/. The docker-logstash-redis container monitors the mounted directory, tailing the log files and buffers the log events to Redis.

How to build the image

sudo docker build -t pmattoo/docker-logstash-redis .

How to use this image

To start a basic container, execute the below command: docker run --link redis:redis -v /var/log:/host/var/log -v /mnt/logstash:/logstash --name <container-name> -i -t pmattoo/docker-logstash-redis