Just run
makeTo clean up the directory, run
make cleandocker run -it --rm logstash -e 'input { stdin { } } output { stdout { } }'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.confIf 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-logstashMIT.