While I was trying to set up logstash I was running into a fun error:
[2018-04-04T14:19:05,689][INFO ][logstash.config.source.local.configpathloader] No config files found in path {:path=>"/etc/logstash/conf.d/devland.conf"}
[2018-04-04T14:19:05,690][ERROR][logstash.config.sourceloader] No configuration found in the configured sources.
The path.settings option can be specified as a command-line option, so that when Logstash starts up (and hasn't yet read a Settings File) it knows where to look for the Settings File so that it can read the rest of the settings.
In order for it to be a supported option in the Settings File we would first have to read it from the Settings File so that we could find the Settings File to read it from, which is circular logic without end
That does make sense, but the odd part is that when I didn't give it any command line options it tried to load what I set in pipelines.conf but was unable to find devland.conf (the error above). However, when I set path.settings in the logstash.yml not only did it not give an error and start but it also seems to recognize that the file /etc/logstash/conf.d/devland.confwas there and load the config no problem.
What would be a good guess as to why it acts like that?
I'm running this on CentOS 7, what would be the best way to ensure that path.settings is set at runtime? (I'm using systemd to stop / start logstash) - this one may be a dumb question.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.