Logstash 6.0 documentation for Stashing your first event shows the following command to run logstash with a simple pipeline which simply pipes stdin to stdout:
$ bin/logstash -e 'input { stdin { } } output { stdout {} }'
This does however not work when running logstash from the official docker container and fails with an error message about incompatible command line options:
$ docker run --rm -it docker.elastic.co/logstash/logstash-oss:6.0.0 \
-e 'input { stdin { } } output { stdout {} }'
ERROR: Settings 'path.config' (-f) and 'config.string' (-e) can't be used simultaneously.
I'm not specifying -f
or path.config
. I simply want to test if logstash can be started and is working for this simple case. How to get around this error without mounting a config file?