Logtash Grok Pattern

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
HASupport
Posts: 19
Joined: Wed Apr 11, 2018 2:12 pm

Logtash Grok Pattern

Post by HASupport »

Hi Nik, Hope you are doing great
I need to put some grok pattern for the following, can you support to achieve please
this is only for the highlighted portion message

<134>GLH-SSO-c5508a: *haSSOServiceTask3: Apr 19 07:24:16.217: %APF_HA-6-CLIENT_TEMP_DB_FIND_ERR: [SS]apf_ha_api.c:258 Unable to find Mobile 4c:66:41:8a:05:f3 entry in the temporary Client database used for APF HA
Last edited by HASupport on Wed May 02, 2018 8:46 pm, edited 1 time in total.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Logtash Grok Pattern

Post by npolovenko »

Hello again, @HASupport! There you go:

Code: Select all

^%{SYSLOG5424PRI:priorty}%{DATA:host}: %{DATA}: %{MONTH:month} %{POSINT:day} %{TIME:time}: %{GREEDYDATA:message}
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
HASupport
Posts: 19
Joined: Wed Apr 11, 2018 2:12 pm

Re: Logtash Grok Pattern

Post by HASupport »

<134>GLH-SSO-c5508a: *haSSOServiceTask3: Apr 19 07:24:16.217: %APF_HA-6-CLIENT_TEMP_DB_FIND_ERR: [SS]apf_ha_api.c:258 Unable to find Mobile 4c:66:41:8a:05:f3 entry in the temporary Client database used for APF HA

^%{SYSLOG5424PRI:priorty}%{DATA:host}: %{DATA}: %{MONTH:month} %{POSINT:day} %{TIME:time}: %{GREEDYDATA:message}

Hi there

The above represents is already I have posted,
What I need is to %{GREEDYDATA:message} pattern ? more readable
for example Mobile 4c:66:41:8a:05:f3 need to more readable format?
Last edited by HASupport on Thu Apr 19, 2018 3:11 pm, edited 1 time in total.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Logtash Grok Pattern

Post by npolovenko »

@HASupport, You could try this syntax to separate the MAC address.

Code: Select all

^%{SYSLOG5424PRI:priorty}%{DATA:host}: %{DATA}: %{MONTH:month} %{POSINT:day} %{TIME:time}: %{GREEDYDATA:message} %{MAC:mac_address}?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked