Metricize filter plugin v3.0.3

Getting Help

For questions about the plugin, open a topic in the Discuss forums. For bugs or feature requests, open an issue in Github.
For the list of Elastic supported plugins, please consult the Elastic Support Matrix.

Description

The metricize filter takes complex events containing a number of metrics
and splits these up into multiple events, each holding a single metric.

Example:

Assume the following filter configuration:

filter {
metricize {
metrics => [ "metric1", "metric2" ]
}
}

Assuming the following event is passed in:

{
type => "type A"
metric1 => "value1"
metric2 => "value2"
}

This will result in the following 2 events being generated in addition to the original event:

If the event has field "somefield" == "hello" this filter, on success,
would add field foo_hello if it is present, with the
value above and the %{host} piece replaced with that value from the
event. The second example would also add a hardcoded field.

id

Add a unique ID to the plugin configuration. If no ID is specified, Logstash will generate one.
It is strongly recommended to set this ID in your configuration. This is particularly useful
when you have two or more plugins of the same type, for example, if you have 2 metricize filters.
Adding a named ID in this case will help in monitoring Logstash when using the monitoring APIs.

If the event has field "somefield" == "hello" this filter, on success,
would remove the tag foo_hello if it is present. The second example
would remove a sad, unwanted tag as well.
:plugin: metricize
:type: filter