I'd like to send Apache HTTPd log statistics, such as 200 status counts to Graphite/Carbon. Logstash looks ideal but all the examples I've seen use Statsd to act as the state counter.
This means spinning up a Statsd server (or enabling Statsd in Collectd 5.x).
Is there a way for Logstash to write counters directly to Graphite/carbon?
Best Answer
Yes, using the "metric" filter in logstash. In the default configuration, it will emit metric events every 5 seconds for a given field. By resetting the counter every 5 seconds, you can send the data straight to Graphite's carbon server for storing.
Every 5 seconds, the following event is created: