Skip to content

Latest commit

 

History

History
48 lines (33 loc) · 1021 Bytes

README.md

File metadata and controls

48 lines (33 loc) · 1021 Bytes

Logstash Docker images

How to build the image

Just run

make

To clean up the directory, run

make clean

How to use this image

Start Logstash with commandline configuration

docker run -it --rm logstash -e 'input { stdin { } } output { stdout { } }'

Start Logstash with configuration file

If you need to run logstash with a configuration file, logstash.conf, that's located in your current directory, you can use the logstash image as follows:

docker run -it --rm -v "$PWD":/config-dir logstash -f /config-dir/logstash.conf

Using a Dockerfile

If you'd like to have a production Logstash image with a pre-baked configuration file, use of a Dockerfile is recommended:

FROM logstash

COPY logstash.conf /some/config-dir/

CMD ["-f", "/some/config-dir/logstash.conf"]

Then, build with docker build -t my-logstash . and deploy with something like the following:

docker run -it --rm my-logstash

License

MIT.