This is just for future reference, as I myself have decided.
When I switched from logstash 2.x to 5.x, I was dealing with this warning (when I started my logstash on this path D: \ somepath \ logstash-5.0.1):
Could not find log4j2 configuration at path /somepath/logstash-5.0.1/config/log4j2.properties. Using default config which logs to console
After some searching on the Internet and digging into the ruby code (in the extracted log table), I found this:
- you must use path.settings correctly (as indicated many times)
- correctly use a file or directory as a url .
Finally, I run my logstash as:
logstash.bat --path.settings=file://D:/somepath/logstash-5.0.1/config
source
share