Drop GrokParseFailure if message exactly equals "\r, \r\n and \n"
"message" => "\r",
"@timestamp" => "2016-04-17T18:40:43.136Z",
"Path" => "C:/Logs/HttpEventSource 1.txt",
"Type" => "HttpEventSource",
"GrokFailures" => [
[0] "_grokparsefailure"
]
My Conf -
if (("_grokparsefailure" in [tags]) and ("message" == "\r" or "message" == "\n" or "message" == "\r\n"))
{
drop {}
}
else
{
mutate
{
rename => { "tags" => "GrokFailures" }
}
}
It is still not droping the event. What am I doing wrong here ???