Nagios Log Server - dissect logstash plugin

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Nagios Log Server - dissect logstash plugin

Post by mcapra »

You could try removing the newlines, since (?m) should make them redundant:

Code: Select all

if [SourceName] == "Schannel" {
    grok {
        match => { "message" => "(?m)An SSL %{WORD:HandshakeType} handshake.*Protocol: %{DATA:Protocol}.*CipherSuite: %{WORD:CipherSuite}.*Exchange strength: %{NUMBER:ExchangeStrength}" }
    }
}
Former Nagios employee
https://www.mcapra.com/
bpizzutiWHI
Posts: 64
Joined: Thu Mar 02, 2017 10:15 am

Re: Nagios Log Server - dissect logstash plugin

Post by bpizzutiWHI »

Yeah, that was it. Didn't like both.

Wow that grok thing is powerful...if you can ever figure it out.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Nagios Log Server - dissect logstash plugin

Post by mcapra »

Grok is just regular expressions, and regular expressions in general are one of those things that are total voodoo magic until you grind them out sufficiently :P
Former Nagios employee
https://www.mcapra.com/
bpizzutiWHI
Posts: 64
Joined: Thu Mar 02, 2017 10:15 am

Re: Nagios Log Server - dissect logstash plugin

Post by bpizzutiWHI »

Spoke too soon again. Seem to have lost "Protocol" somewhere, comes back empty. Adding a newline after "handshake" causes the parse failures again.
bpizzutiWHI
Posts: 64
Joined: Thu Mar 02, 2017 10:15 am

Re: Nagios Log Server - dissect logstash plugin

Post by bpizzutiWHI »

mcapra wrote:Grok is just regular expressions, and regular expressions in general are one of those things that are total voodoo magic until you grind them out sufficiently :P
Well, I'm still grinding. TUrns out this filter works better if Protocol is set for GREEDYWORD.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Nagios Log Server - dissect logstash plugin

Post by cdienger »

Sounds good : ) Let us know if anything comes up that we can help with.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked