Created
February 13, 2012 13:45
-
-
Save turtlebender/1817059 to your computer and use it in GitHub Desktop.
Logstash upstart files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
description "logstash collector server" | |
start on runlevel [2345] | |
stop on runlevel [06] | |
# tell upstart we're creating a daemon | |
# upstart manages PID creation for you. | |
expect fork | |
script | |
test -d /var/log/logstash || mkdir /var/log/logstash | |
cd /var/lib/logstash | |
exec sudo java -jar logstash-1.1.0-monolithic.jar agent -f /etc/logstash-collector.conf --log /var/log/logstash/logstash-collector.out & | |
emit logstash-indexer-server_running | |
end script |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
description "logstash index server" | |
start on runlevel [2345] | |
stop on runlevel [06] | |
# tell upstart we're creating a daemon | |
# upstart manages PID creation for you. | |
expect fork | |
script | |
test -d /var/log/logstash || mkdir /var/log/logstash | |
cd /var/lib/logstash | |
exec sudo java -jar logstash-1.1.0-monolithic.jar agent -f /etc/logstash-indexer.conf --log /var/log/logstash/logstash-indexer.out & | |
emit logstash-indexer-server_running | |
end script |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
description "logstash web server" | |
start on runlevel [2345] | |
stop on runlevel [06] | |
# tell upstart we're creating a daemon | |
# upstart manages PID creation for you. | |
expect fork | |
script | |
test -d /var/log/logstash || mkdir /var/log/logstash | |
cd /var/lib/logstash | |
exec sudo java -jar logstash-1.1.0-monolithic.jar web --log /var/log/logstash/logstash-web.log & | |
emit logstash-web-server_running | |
end script |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment