I've been experimenting with logstash for a little bit now but mostly from command line. I've had trouble getting it working properly when run as a service.
Using logstash 2.3.4 install via rpm.
sudo service logstash configtest - > Configuration OK
I start the service, nothing ever outputs to /var/log/logstash/logstash.log
Just to provide more details on what I have tried so far..
Running service as user logstash
Add "--verbose" option in LS_OPTS within /etc/init.d/logstash
Verified service was running using "ps -ef | grep logstash". Command line below:
logstash 4643 1 0 12:55 pts/1 00:00:00 bash /opt/logstash/vendor/jruby/bin/jruby --1.9 -J-XX:+UseParNewGC -J-XX:+UseConcMarkSweepGC -J-Djava.awt.headless=true -J-XX:CMSInitiatingOccupancyFraction=75 -J-XX:+UseCMSInitiatingOccupancyOnly -J-XX:+HeapDumpOnOutOfMemoryError -J-Djava.io.tmpdir=/var/lib/logstas -J-Xmx1g -J-XX:HeapDumpPath=/opt/logstash/heapdump.hprof /opt/logstash/lib/bootstrap/environment.rb logstash/runner.rb agent -f /etc/logstash/conf.d -l /var/log/logstash/logstash.log --verbose
Changed permissions (using chmod -R for recursive) to logstash:logstash on the following directory structures:
/opt/logstash
/etc/logstash
/var/lib/logstash
/var/log/logstash
I run ls -al /var/log/logstash while the service is running, it seems like nothing is ever outputted to these logs? Their sizes are always zero.
total 4
drwxrwxr-x 2 logstash logstash 66 Mar 20 20:59 .
drwxr-xr-x. 8 root root 4096 Mar 20 17:59 ..
-rw-r--r-- 1 logstash logstash 0 Mar 21 12:55 logstash.err
-rw-r--r-- 1 logstash logstash 0 Mar 20 20:59 logstash.log
-rw-r--r-- 1 logstash logstash 0 Mar 21 12:55 logstash.stdout
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.