hi,
i's my logstash filter conf,like this
if [url_M] == "isOldPasswordCorrect" {
metrics {
meter => [ "passauth" ]
add_tag => "metric"
}
if "metric" in [tags] {
ruby {
code => "event.cancel if event['passauth.rate_1m']*60 < 100"
}
}
}
but when i test conf,the logstash say's
Ruby exception occurred: undefined method `*' for nil:NilClass {:level=>:error}