457a9d8764
This new logstash module adds classes to install logstash agents and indexers as well as redis and elasticsearch. The configuration for each of these services is rudimentary but it shouldn't be difficult to expand the configs and make them useful. Also, add a logstash.openstack.org node that will have an agent, indexer, web frontend, redis, and elasticsearch installed on it. Change-Id: I25b635f088f99d45cfaa70ed122c6433d3784937 Reviewed-on: https://review.openstack.org/19871 Reviewed-by: Jeremy Stanley <fungi@yuggoth.org> Approved: Clark Boylan <clark.boylan@gmail.com> Reviewed-by: Clark Boylan <clark.boylan@gmail.com> Tested-by: Jenkins
25 lines
646 B
Plaintext
25 lines
646 B
Plaintext
# logstash - agent instance
|
|
#
|
|
# Copied from http://cookbook.logstash.net/recipes/using-upstart/
|
|
|
|
description "logstash agent instance"
|
|
|
|
start on virtual-filesystems
|
|
stop on runlevel [06]
|
|
|
|
# Respawn it if the process exits
|
|
respawn
|
|
respawn limit 5 30
|
|
expect fork
|
|
|
|
# You need to chdir somewhere writable because logstash needs to unpack a few
|
|
# temporary files on startup.
|
|
chdir /opt/logstash
|
|
|
|
script
|
|
|
|
# This runs logstash agent as the 'logstash' user
|
|
su -s /bin/sh -c 'exec "$0" "$@"' logstash -- /usr/bin/java -jar logstash.jar agent -f /etc/logstash/agent.conf --log /var/log/logstash/agent.log &
|
|
emit logstash-agent-running
|
|
end script
|