Skip to content

Instantly share code, notes, and snippets.

@vmadman
Created April 27, 2013 06:46
Show Gist options
  • Save vmadman/5472130 to your computer and use it in GitHub Desktop.
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.
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