_csvparsefailure

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
firegoblin
Posts: 2
Joined: Mon Dec 08, 2014 11:29 am

_csvparsefailure

Post by firegoblin »

I'm testing porting of some of my ELK config into Nagios Log Server, to see if we should 'upgrade' and have found a difference in behaviour.

Currently we are processing some syslog streams that can have truncated elements that cause CSV parsing to fail (as they contain a nested URL that can be very long). We 'semi-gracefully' capture these with a snippet of code as below:-

if "_csvparsefailure" in [tags] {
mutate { add_field => { 'threat_type' => 'Warn - Long URL' } }
mutate { remove_tag => [ "_csvparsefailure"] }
mutate { add_tag => [ "pa_th_csv_error" ] }

My issue is that Nagios does not seem to capture these entries - they are discared automatically when the CSV parse fails (whereas at the moment we can at least dump the raw message into a bulk field for manual review). I assume there is an ELK setting being applied somewhere that changes this behaviour during startup, but not sure where it is?

Any pointers welcomed!
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: _csvparsefailure

Post by abrist »

firegoblin wrote:I assume there is an ELK setting being applied somewhere that changes this behaviour during startup, but not sure where it is?
Could you clarify the behavior of which you speak?
Could you show us an example of the failing query?
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.
firegoblin
Posts: 2
Joined: Mon Dec 08, 2014 11:29 am

Re: _csvparsefailure

Post by firegoblin »

Apologies.

After a bit more testing we noted that we could get csvparse failures reported.

This issue was that - when transposing the config from native ELK into NLS we used the config 'block' function to make it easier to manage. When doing this we slightly changed the overall flow and this stopped the error occuring (not actually good for us, as the logic used it to trigger a different parse, but that's a different story!).

Thanks
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: _csvparsefailure

Post by sreinhardt »

No problem, did you get it all figured out, it sounds like it but just want to be sure.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked