hi,
have anyone faced issue that logstash metrics stopped working after upgrade to 2.2.x?
it does not work both on 2.2.0 and 2.2.2
config is so (see below), also there is another ouptut section (to redis) in another file:
filter {
if [type] == "web_requests" {
indent preformatted text by 4 spaces`if [response] =~ /^5\d\d/ or [response] =~ /^4\d\d/ {
metrics {
add_tag => "logstash_alarm"
meter => "web_errors"
}
}
}
}
output {
if "logstash_alarm" in [tags] and [web_errors.rate_1m] > 1 {
pagerduty {
description => "NUMBER OF 5xx ERRORS FATAL"
details => {
"timestamp" => "%{@timestamp}"
}
service_key => "xxxxxxx"
incident_key => "logstash/servicename"
}
}
}
P.S.
pagerduty ouput works by itself