Add skeleton logstash module.

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
This commit is contained in:
Clark Boylan 2013-01-16 15:01:25 -08:00 committed by Jenkins
commit 25d167565a
3 changed files with 29 additions and 0 deletions

8
agent.conf.erb Normal file
View File

@ -0,0 +1,8 @@
input {
syslog {
type => syslog
port => 5514
}
}
<%= scope.function_template(['openstack_project/logstash/redis-output.conf.erb']) %>

18
indexer.conf.erb Normal file
View File

@ -0,0 +1,18 @@
input {
redis {
host => "127.0.0.1"
type => "redis-input"
# these settings should match the output of the agent
data_type => "list"
key => "logstash"
# We use json_event here since the sender is a logstash agent
format => "json_event"
}
}
output {
elasticsearch {
host => "127.0.0.1"
}
}

3
redis-output.conf.erb Normal file
View File

@ -0,0 +1,3 @@
output {
redis { host => "127.0.0.1" data_type => "list" key => "logstash" }
}