Documentation for metrics filter uses wrong example
Description
Gliffy Diagrams
Activity
Show:

Philippe Weber January 25, 2015 at 8:53 AM
Documentation is now up to date
http://www.elasticsearch.org/guide/en/logstash/current/plugins-filters-metrics.html
Fixed
Details
Details
Assignee

Reporter

Fix versions
Affects versions
Created July 6, 2014 at 2:10 PM
Updated January 25, 2015 at 8:53 AM
Resolved January 25, 2015 at 8:53 AM
The documentation for the metrics filter gives an example:
...
output {
only emit events with the 'metric' tag
if "metric" in [tags] {
stdout {
message => "rate: %{events.rate_1m}"
}
}
}
However 'message' is a deprecated field of stdout. According to https://logstash.jira.com/browse/LOGSTASH-1413, this should be changed to use the line output.