_csvparsefailure
Posted: Mon Dec 08, 2014 11:38 am
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!
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!