fluent-plugin-statsd_event, a plugin for Fluentd
gem install fluent-plugin-statsd_event
host
- Statsd host. String, default: '127.0.0.1'port
- Statsd port. String, default: '8125'grep
- If set only matched lines will be sent to statsd. Array, default: nonetags
- Tags to be added to every message. Array, default: nonerecord_key
- Key for fluentd log record. Usually it's value set to 'message'. If not set, whole fluentd record will be sent as JSON. String, default: nonealert_type
- Datadog statsd alert type. Can be "error", "warning", "info" or "success". String, default: nonepriority
- Datadog statsd priority. Can be "normal" or "low". String, default: noneaggregation_key
- Datadog statsd aggregation key. Assign an aggregation key to the event, to group it with some others. String, default: nonesource_type_name
- Datadog statsd source type name. An array of tags. Array, default: none
Stream kernel messages to local datadog-statsd instance
<filter syslog.kernel>
type statsd_event
</filter>
Stream all error messages from syslog to a remote statsd instance
<filter syslog.**>
host statsd.example.com
port 8125
type statsd_event
grep ["ERROR", "err[^\w]"]
tags ["alert:syslog", "role:controller"]
alert_type error
record_key message
</filter>
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Test it (
GEM_HOME=vendor bundle install; GEM_HOME=vendor bundle exec rake test
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Copyright (c) 2016 Atlassian