I was using docker.elastic.io/logstash:5.3.0 and everything was working fine, I just changed from 5.3.0 to 5.4.0 for the Dockerfile, and now when start it can't find the configuraiton file ?
Did anything change in this update, I couldn't find any reference to this chaging bevavior.
Just for reference, this are the lines I map via --volume
to get logstash configs.
volumes:
- ./logstash/config/logstash.yml:/usr/share/logstash/config/logstash.yml
- ./logstash/pipeline/:/usr/share/logstash/pipeline/
The error I get with 5.4.0 is
logstash_1 | Sending Logstash's logs to /usr/share/logstash/logs which is now configured via log4j2.properties
logstash_1 | ERROR: No configuration file was specified. Perhaps you forgot to provide the -f yourlogstash.conf' flag?
logstash_1 | usage:
logstash_1 | bin/logstash -f CONFIG_PATH [-t] [-r] [] [-w COUNT] [-l LOG]
logstash_1 | bin/logstash -e CONFIG_STR [-t] [--log.level fatal|error|warn|info|debug|trace] [-w COUNT] [-l LOG]
logstash_1 | bin/logstash -i SHELL [--log.level fatal|error|warn|info|debug|trace]
logstash_1 | bin/logstash -V [--log.level fatal|error|warn|info|debug|trace]
logstash_1 | bin/logstash --help
logstashpoc_1 exited with code 1
If I add this to the docker-compose.yml, I works, but I'd like it to work as before.
command: ["-f", "/usr/share/logstash/pipeline/database-polling.conf"]