I have also created a very simple config file : input { file { path => "/tmp/test" start_position => beginning } } output { stdout {} }
If I launch logstash manually from the command line, it runs fine and the config operates as expected.
However if I try service start logstash, it doesn't run, no errors (or anything else) is logged, no process running. Only a pid file is created, but again, no process matching it.
Even if I delete the config file and try to start logstash through init with no config, again, nothing logged, no process running.
Java(TM) SE Runtime Environment (build 1.8.0_66-b17)
However, after resorting to a strace session, I eventually fixed it by tweaking the init file a bit. Can't remember what I did exactly, but if I get a chance, I'll go back and check.
Quick follow up - my issue was that the /var/log/logstash directory was owned by a non-logstash user (due to a previous install of other software) and so the service was failing when it couldn't open the log file. Changing the owner of all of the files fixed the issue.
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.