Troubles with parsing the log

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Troubles with parsing the log

Post by dlukinski »

Hello LOG support

I am trying to parse this log:

Code: Select all

<14>Aug 17 11:05:21 KC-FI-MGR.konecranes.com 1,2020/08/17 11:05:21,001701001987,SYSTEM,globalprotect,0,2020/08/17 11:05:01,,globalprotectgateway-config-release,GP gateway-N,0,0,general,informational,"GlobalProtect gateway client configuration released. User name: XXXX, Private IP: 10.XX.XX.X, Client version: 5.1.5-20, Device name: CNU406CM1R, Client OS version: Microsoft Windows 10 Enterprise , 64-bit, VPN type: Device Level VPN.",383324,0x8000000000000000,0,0,0,0,,KC-FI-FW2
With the following filter:

Code: Select all

if [type] == "PALOALTOlog" {
grok {
        match => { "message" => "%{DATE:date} %{TIME:time} - %{DATA:mtype} - \[%{IP:ip}\] %{WORD:username}%{GREEDYDATA:authstring} - %{GREEDYDATA:message}"}
overwrite => [ "message" ]
     }
}
but no luck
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Troubles with parsing the log

Post by cdienger »

If you haven't already, I'd highly suggest taking a look at https://assets.nagios.com/downloads/nag ... ilters.pdf which covers custom filters.

How does this event look in the dashboard section of NLS exactly?

What kind of input is this coming in on?

It's not clear to me exactly which pieces of information are you are trying to pull out. Please highlight exactly what you'd like to pull from:

Code: Select all

<14>Aug 17 11:05:21 KC-FI-MGR.konecranes.com 1,2020/08/17 11:05:21,001701001987,SYSTEM,globalprotect,0,2020/08/17 11:05:01,,globalprotectgateway-config-release,GP gateway-N,0,0,general,informational,"GlobalProtect gateway client configuration released. User name: XXXX, Private IP: 10.XX.XX.X, Client version: 5.1.5-20, Device name: CNU406CM1R, Client OS version: Microsoft Windows 10 Enterprise , 64-bit, VPN type: Device Level VPN.",383324,0x8000000000000000,0,0,0,0,,KC-FI-FW2
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: Troubles with parsing the log

Post by dlukinski »

cdienger wrote:If you haven't already, I'd highly suggest taking a look at https://assets.nagios.com/downloads/nag ... ilters.pdf which covers custom filters.

How does this event look in the dashboard section of NLS exactly?

What kind of input is this coming in on?

It's not clear to me exactly which pieces of information are you are trying to pull out. Please highlight exactly what you'd like to pull from:

Code: Select all

<14>Aug 17 11:05:21 KC-FI-MGR.konecranes.com 1,2020/08/17 11:05:21,001701001987,SYSTEM,globalprotect,0,2020/08/17 11:05:01,,globalprotectgateway-config-release,GP gateway-N,0,0,general,informational,"GlobalProtect gateway client configuration released. User name: XXXX, Private IP: 10.XX.XX.X, Client version: 5.1.5-20, Device name: CNU406CM1R, Client OS version: Microsoft Windows 10 Enterprise , 64-bit, VPN type: Device Level VPN.",383324,0x8000000000000000,0,0,0,0,,KC-FI-FW2

Thank you for responding,

I've attached the screenshot from Nagios Log (this message = LOG message body)

We are trying to parse the following:
Received Time/Date - 2020/08/17 11:05:21
Log Time/Date - 2020/08/17 11:05:01
Message - GlobalProtect gateway client configuration released OR GlobalProtect gateway user logout succeeded OR GlobalProtect gateway user authentication failed
UserName
Host - KC-FI-FW2
-------------------
what is best GROK discovery/pattern tool for Nagios Log?
You do not have the required permissions to view the files attached to this post.
User avatar
jdunitz
Posts: 235
Joined: Wed Feb 05, 2020 2:50 pm

Re: Troubles with parsing the log

Post by jdunitz »

We often use
https://grokdebug.herokuapp.com/

When I tried it on your data, it wouldn't autodiscover it, however. It might take some tweaking.

This was discussed on Reddit a while back; you may find it helpful: https://www.reddit.com/r/paloaltonetwor ... ost_there/

--Jeffrey
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked