ansible-playbook-kibana/files/logstash/logstash-init

26 lines
619 B
Plaintext
Raw Normal View History

2013-07-07 03:21:12 +00:00
# logstash-indexer.conf# logstash - indexer instance
#
description "logstash indexer instance"
start on virtual-filesystems
stop on runlevel [06]
respawn
respawn limit 5 30
limit nofile 65550 65550
env HOME=/opt/logstash
env JAVA_OPTS='-Xms512m -Xmx512m'
chdir /opt/logstash
setuid root
console log
# for versions 1.1.1 - 1.1.4 the internal web service crashes when touched
# and the current workaround is to just not run it and run Kibana instead
script
exec java -jar /opt/logstash/share/logstash.jar agent -f /opt/logstash/etc/logstash.conf --log /var/log/logstash/logstash-indexer.out
end script