Event ID 5156

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
cduffy
Posts: 13
Joined: Fri Apr 17, 2015 7:27 am

Event ID 5156

Post by cduffy »

Our NLS get bogged down ever few days with event ID 5156. It appears that when a log is sent the NLS it created a 5156 event. Then sending the 5156 log creates another and so on and so on.

We have the following in our nxlog config but we are still receiving the logs at the bottom of this post in NLS.

Exec if ($EventID == 5156 AND ($DestinationPort == 514 OR $DestinationPort == 3515)) drop();



The Windows Filtering Platform has permitted a connection.

Application Information:
Process ID: 3772
Application Name: \device\harddiskvolume4\program files (x86)\nxlog\nxlog.exe

Network Information:
Direction: Outbound
Source Address:
Source Port: 49694
Destination Address:
Destination Port: 3515
Protocol: 6

Filter Information:
Filter Run-Time ID: 67911
Layer Name: Connect
Layer Run-Time ID: 48
User avatar
jdunitz
Posts: 235
Joined: Wed Feb 05, 2020 2:50 pm

Re: Event ID 5156

Post by jdunitz »

Hi Cduffy,

It looks like you could just disable 5156 events altogether, if that's a solution for you:

https://www.urtech.ca/2012/09/solved-ho ... onnection/

or

https://stories.schubergphilis.com/get- ... 35ecc83265


Hope that helps!

--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!
cduffy
Posts: 13
Joined: Fri Apr 17, 2015 7:27 am

Re: Event ID 5156

Post by cduffy »

We need to have event ID 5156 enabled. Im looking to stop nxlog from sending them to NLS.
User avatar
jdunitz
Posts: 235
Joined: Wed Feb 05, 2020 2:50 pm

Re: Event ID 5156

Post by jdunitz »

Perhaps a more general filter would work better in your case?

Code: Select all

if ($EventID == 5156 and $Channel == 'Security') drop();

Better yet, use what you had before, but with DestPort rather than DestinationPort:

Code: Select all

Exec if ($EventID == 5156 AND ($DestPort == 514 OR $DestPort == 3515)) drop();

Let me know if that works any better for you.

--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!
cduffy
Posts: 13
Joined: Fri Apr 17, 2015 7:27 am

Re: Event ID 5156

Post by cduffy »

Ill try destport and let you know if it works. I want to log other 5156 events to NLS so I cant use the other line.
User avatar
jdunitz
Posts: 235
Joined: Wed Feb 05, 2020 2:50 pm

Re: Event ID 5156

Post by jdunitz »

If that doesn't work for you, let us know and we'll find some other ideas.

--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