logstash/cookbook — pull request #5 by igalic (2012-07-06 14:42:02+00:00)
Title: Update gh-pages

And here's the config file:

# logstash - indexer instance
#

description "logstash indexer instance"

start on virtual-filesystems
stop on runlevel [06]

respawn
respawn limit 5 30

#env JAVA_OPTS='-Xms512m -Xmx512m'
chdir /opt/logstash
setuid logstash
setgid adm
console log

script
/usr/bin/java -jar logstash.jar agent -f /etc/bw/logstash/indexer.conf --log /var/bwlog/logstash/logstash-indexer.out -- web --log /var/bwlog/logstash/logstash-web.out --backend elasticsearch://localhost/
emit logstash-indexer_running
end script