Add statsd/apache example

This commit is contained in:
Jordan Sissel 2011-07-23 23:51:54 -07:00
parent 966e87a48b
commit a49f35c2f5

View file

@ -0,0 +1,25 @@
input {
file {
path => "/var/log/apache2/access_log"
type => "apache-access"
}
tcp {
type => "apache-access"
port => 3333
}
}
filter {
grok {
type => "apache-access"
pattern => "%{COMBINEDAPACHELOG}"
}
}
output {
statsd {
increment => [ "apache.response.%{response}" ]
count => [ "apache.bytes", "%{bytes}" ]
}
#stdout { debug => true }
}