Skip to content

Instantly share code, notes, and snippets.

@vvuksan
Created August 4, 2011 02:19
Show Gist options
  • Save vvuksan/1124364 to your computer and use it in GitHub Desktop.
Save vvuksan/1124364 to your computer and use it in GitHub Desktop.
Using Logstash to generate log metrics
input { whatever }
filter { grok { pattern => "%{COMBINEDAPACHELOG}" } } output { statsd { increment => "apache.status.%{response}" } }
@vvuksan
Copy link
Author

vvuksan commented Sep 2, 2011

If multiple metrics involved

output { statsd { tags => syslog ... } statsd { tags => apache ... } }

@basukalabikash
Copy link

how does the graph show up in graphite ? mine shows up with floating point numbers as the count ....

http://serverfault.com/questions/391332/graphite-is-plotting-increments-from-logstash-in-float

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment