_grokparsefailure

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
dominicborg
Posts: 2
Joined: Tue Nov 25, 2014 11:05 pm

_grokparsefailure

Post by dominicborg »

Hi

Needed some help with a potential poorly formed filter.

I have the below filter in place on my log server:

Code: Select all

if [SourceModuleName] == 'adv_iis_log1.voy-web1-ec2' {
mutate {
replace => [ 'host', 'voy-web1-ec2' ]
}
}

if [SourceModuleName] == 'adv_iis_log1.voy-web2-ec2' {
mutate {
replace => [ 'host', 'voy-web2-ec2' ]
}
}
Now the above filter is working great for anything where it matches the SourceModuleName. However for everything else say a syslog entry for a router it will add tags with _grokparsefailure

Does anyone see what I am doing wrong?

Cheers,
Dom
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: _grokparsefailure

Post by abrist »

I think this just implies there was no match. From the logstash faq(http://logstash.net/docs/1.2.0/filters/grok):
tag_on_failure

Value type is array
Default value is ["_grokparsefailure"]

If true, ensure the '_grokparsefailure' tag is present when there has been no successful match
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
dominicborg
Posts: 2
Joined: Tue Nov 25, 2014 11:05 pm

Re: _grokparsefailure

Post by dominicborg »

thank you that makes alot of sense now
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: _grokparsefailure

Post by tmcdonald »

Are we clear to close the thread or do you have more questions regarding the issue?
Former Nagios employee
Locked