/srv/docker/logstash/etc:/config-dir : i don’t understand the config-dir , i’m expecting a path not this
-f : i don’t understanf the -f option why it’s used
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