Created
April 27, 2013 06:46
-
-
Save vmadman/5472130 to your computer and use it in GitHub Desktop.
A configuration for a logstash agent. This agent accepts input from REDIS and outputs to Graylog2 using GELF. An additional STATSD output sends throughput stats to statsd, which outputs to graphite.
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
input { | |
redis { | |
host => "###REDIS_IP###" | |
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 { | |
statsd { | |
tags => [ "Apache", "Access" ] | |
host => "127.0.0.1" | |
port => 8125 | |
count => [ "apache.bytes", "%{bytes}" ] | |
} | |
gelf { | |
host => "127.0.0.1" | |
port => 12201 | |
facility => "%{@type}" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment