I was trying out different things with logstash while starting it from command line using
sudo /usr/share/logstash/bin/logstash -f /etc/logstash/conf.d/config.conf
Everything worked fine there. I would like to use logstash as a service in the long term.
When no logs showed up I looked up the status using
sudo service logstash status
I noticed that logstash was restarting every 30s because of the line:
Active: active (running) since .....; 15s ago
The time at the end of the line never exceed 30s.
When I tried to look at the logstash logs I noticed that "ls /var/log/logstash" returns absolutely nothing even though I have "path.logs: /var/log/logstash" in my logstash.yml
This error can be the result of a plugin not working correctly. List your installed plugins with sudo bin/logstash-plugin list
and if needed remove them with sudo bin/logstash-plugin remove [pluginname]
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.