Getting a _grokparsefailure tag in log data

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
DhananjayaPatil
Posts: 11
Joined: Fri Oct 22, 2021 8:06 am

Getting a _grokparsefailure tag in log data

Post by DhananjayaPatil »

Hi Team,

I was following the below guide to test filters:
https://assets.nagios.com/downloads/nag ... ilters.pdf

But getting a _grokparsefailure in the tag of log data even after following guide from point to point.

Kindly provide your valuable inputs into it.

Thanks in advance.
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: Getting a _grokparsefailure tag in log data

Post by gsmith »

Hi DhananjayaPatil ,

Can you please provide me with the expression that is getting the grokparsefailure error?

Thanks!
DhananjayaPatil
Posts: 11
Joined: Fri Oct 22, 2021 8:06 am

Re: Getting a _grokparsefailure tag in log data

Post by DhananjayaPatil »

Hi gsmith,

Heres the filter called TestFilter which I have used.

if [program] == 'LinuxFilterTest' {
grok {
match => [ 'message', '%{WORD:first_word} %{WORD:second_word} %
{GREEDYDATA:everything_else}' ]
}
}


As you can see, its exactly same as the one provided in the documentation.
Let me know what else I can try for it to get working.

Thanks
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: Getting a _grokparsefailure tag in log data

Post by gsmith »

Hi,

Please go to Configure, Global Config. Then expand the Input and Filter for File Test as shown:
Image010.jpg

Send me a screenshot of what you have.

Also, on the Nagios Log Server, from a command line please run:

Code: Select all

ls -l /tmp/test.log
and send me the output.

Thanks
You do not have the required permissions to view the files attached to this post.
Locked