Page 1 of 1
EventLogs not shipped from Windows 2016 to NXlog
Posted: Fri May 11, 2018 11:03 am
by dlukinski
Hello Nagios Log Support
We've configured NXlog client on Windows 2016, but no logs shipped to Nagios Log
Conf file attached.
Re: EventLogs not shipped from Windows 2016 to NXlog
Posted: Fri May 11, 2018 2:00 pm
by cdienger
If your goal is to only send those specific event IDs you want to use the logical AND and not the OR:
Exec if not ($EventID == 4624 AND $EventID == 4634 AND $EventID == 4648 AND $EventID == 4672) drop();
Re: EventLogs not shipped from Windows 2016 to NXlog
Posted: Fri May 11, 2018 8:58 pm
by dlukinski
cdienger wrote:If your goal is to only send those specific event IDs you want to use the logical AND and not the OR:
Exec if not ($EventID == 4624 AND $EventID == 4634 AND $EventID == 4648 AND $EventID == 4672) drop();
I am not getting ANY logs through
- all other LOG shpping installs for Events use OR (AND means combined?)
Re: EventLogs not shipped from Windows 2016 to NXlog
Posted: Mon May 14, 2018 10:02 am
by cdienger
Not getting ANY logs would make sense with this logic. For example, say event 4624 came in, the first part:
$EventID == 4624
would evaluate to true, but the rest of the line would still be executed:
$EventID == 4634
would evaluate to false because 4624 !=4634. The action would then be to drop();
Re: EventLogs not shipped from Windows 2016 to NXlog
Posted: Wed May 16, 2018 6:46 pm
by dlukinski
cdienger wrote:Not getting ANY logs would make sense with this logic. For example, say event 4624 came in, the first part:
$EventID == 4624
would evaluate to true, but the rest of the line would still be executed:
$EventID == 4634
would evaluate to false because 4624 !=4634. The action would then be to drop();
Log shipping still not happenning (changed CONF file even so that all other CONF files we had successfully worked with "OR" instead)
Re: EventLogs not shipped from Windows 2016 to NXlog
Posted: Thu May 17, 2018 9:44 am
by scottwilkerson
Can you share the current config for us to review?
Re: EventLogs not shipped from Windows 2016 to NXlog
Posted: Thu May 17, 2018 10:11 am
by cdienger
I see you've opened a ticket. We'll close this thread and continue to work through the ticket.