NetXMS Support Forum

English Support => General Support => Topic started by: saksham.adyso on October 01, 2024, 02:40:01 PM

Title: Windows events not sync
Post by: saksham.adyso on October 01, 2024, 02:40:01 PM
Windows events that occur when an agent is disabled are not synchronized when the agent is started. The documentation says that the agent stores the value of the last event in the registry and sends all events since the last synchronization on startup.
Title: Re: Windows events not sync
Post by: uldis on October 03, 2024, 08:01:18 AM
Hi there, we have replicated this issue and team will work to provide a fix. Thank you for your contribution.
Title: Re: Windows events not sync
Post by: uldis on October 09, 2024, 01:12:44 PM
Hi Saksham

This function should be explicitly enabled by setting ProcessOfflineEvents = true in LogWatch section. Please try and let us know if any further issues observed.
Title: Re: Windows events not sync
Post by: saksham.adyso on October 17, 2024, 09:04:48 AM
Hi Uldis, I tried several possible where to specify the ProcessOfflineEvents parameter with a value of true, but none sent the event after running nxagent again.
I tried
First option:

[Logwatch]
ProcessOfflineEvents = true

[WinEventSync]
EventLog = Application

[WinEventSync/Application]
ProcessOfflineEvents = true
WinEventSync = *

Second
[WinEventSync]
EventLog = Application
ProcessOfflineEvents = true

[WinEventSync/Application]
WinEventSync = *
 Last
[WinEventSync]
EventLog = Application

[WinEventSync/Application]
ProcessOfflineEvents = true
WinEventSync = *
By the way, the Logwatch section is only for the logwatch subagent, and for the Windows event is the WinEventSync section. Or this section is common for both subagents?
Title: Re: Windows events not sync
Post by: uldis on October 17, 2024, 10:23:50 AM
Hi Saksham

In your configuration examples, we note mix-ups between log synchronization and log watch functionalities, those are completely separate and have been such due to historical reasons and that is also reflected in documentation. Here is my LogWatch configuration

SubAgent = logwatch
[LOGWATCH]
ProcessOfflineEvents = true


I have created template "WINDOWS LOG", added Agent Policies where all Windows event IDs generate my custom event in Actions section. I stopped Agent, observed new Windows events generated in Event Viewer->Windows Logs->Security, for example, started up Agent and saw Windows backlog events processed and my custom events genearted for time span when Agent was down. Please try the above scenario from your side.
Title: Re: Windows events not sync
Post by: saksham.adyso on October 17, 2024, 02:04:45 PM
In my environment I only use SubAgent for wineventsync.nsm. I don't use Logwatch. I also don't use the agent policy (I set everything via the INI file of the nx agent).
So if I make a policy and use the logwatch subagent, can I also collect Windows events?
Title: Re: Windows events not sync
Post by: uldis on October 18, 2024, 10:55:01 AM
Hi Saksham

You would need to set your side up as per exmaple and the functionality would work. SubAgent logwatch is a must here.
Title: Re: Windows events not sync
Post by: Filipp Sudanov on November 05, 2024, 10:16:15 AM
To clarify this - we have two ways of dealing with windows event logs
- logwatch
- wineventsync

Logwatch supports parsing of offline events, while wineventsync currently does not. There is an issue in our bug tracker on this, so some day this will be fixed: https://track.radensolutions.com/issue/NX-1997