Metrics is not executuing in logstash


(Krishna Brata Mondal) #1

Hi All,
I am very new in ELK, I have configured the logstash config file where I have below code cnipped configurred to implement and trigger email when a threshold crossed. To get this done I used mertic but its not executing... please see below:

filter{
...
if "Invalid sm_usergroups" in [message] {
metrics {
meter => ["Invalid sm_usergroups"]
add_tag => "metric"
}
}

output{
if "metric" in [tags] { // this itself is not working, after this need to implement threshold
stdout {
codec => line {
format => "Output from Metric."
}
}
email {
.....
}
}

Please Note: I am using ELK-5.5.0, version can not be updated as already existing implementation is there in place. I have to use this version only.
Please help.


(system) #2

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.