I have a new install of Logstash 5.4.0 on CentOS 7 with a single beat input and output configured.
The service starts, and sytemctl says it is running, but it won't open the TCP port, connect to RabbitMQ or write any logs. The configs files are held in /etc/logstash/conf.d:
Managed to start it in debug mode but had to specify the path to the yml. Without doing so, I get this error:
WARNING: Could not find logstash.yml which is typically located in $LS_HOME/config or /etc/logstash. You can specify the path using --path.settings. Continuing using the defaults
ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console
The logstash.yml is in /etc/logstash, but until I specified that fact with --path.settings logstash couldn't find it. Once I did, logstash loaded.
It can;t find the log4j2 file either.
Why would it not be able to find these files in the default path?
So it has all the correct paths, all default, but when I start Logstash as a service it doesn't find the settings file, and hence no logging and no config file.
Starting it like this from /usr/share/logstash works:
When I start it manually and specify the settings file I am doing so as root rather than the logstash user, but the /etc/logstash directory is readable by everyone
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.