Skip to content

Instantly share code, notes, and snippets.

@vmadman
Created April 27, 2013 06:48
Show Gist options
  • Save vmadman/5472139 to your computer and use it in GitHub Desktop.
Save vmadman/5472139 to your computer and use it in GitHub Desktop.
An example SupervisorD configuration for all three logstash components. Some of it might look obvious, but it took a ton of tweaking to figure it out. (but I might just be dumb)
[program:lss]
process_name=Shipper
command=java -jar /usr/local/logstash/bin/logstash-1.1.9-monolithic.jar agent --config /usr/local/logstash/conf/shipper.conf --log /usr/local/logstash/log/shipper.log
user=logstash
startretries=3
redirect_stderr=true
std_out_logfile=NONE
startsecs=3
environment=HOME="/usr/local/logstash/"
[program:lsi]
process_name=Indexer
command=java -jar /usr/local/logstash/bin/logstash-1.1.9-monolithic.jar agent --config /usr/local/logstash/conf/indexer.conf --log /usr/local/logstash/log/indexer.log
user=logstash
startretries=3
redirect_stderr=true
std_out_logfile=NONE
startsecs=3
environment=HOME="/usr/local/logstash/"
[program:lsw]
process_name=Web
command=java -jar /usr/local/logstash/bin/logstash-1.1.9-monolithic.jar web --backend elasticsearch://127.0.0.1/
user=logstash
startretries=3
redirect_stderr=true
std_out_logfile=NONE
startsecs=3
autostart=false
environment=HOME="/usr/local/logstash/"
[group:logstash]
programs=lss,lsi,lsw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment