Windows event log synchronization
-
-
You can load the agent inside the Agent Configuration:
SubAgent=wineventsync.nsmTo enable syncing of logs, you next need to tell it which logs to monitor, see example below:
[WinEventSync] EventLog=Application EventLog=Security EventLog=SystemNow you need to configure the Events you want to monitor. You can setup filters per log in a [WinEventSync/LOGNAME] section. If you don't configure any filters, you'll get everything for that log:
[WinEventSync/Security] IncludeEvent=4624-4625 IncludeEvent=4800-4803 ... ExcludeEvent=0-65535 [WinEventSync/System] IncludeSource=Microsoft-Windows-WindowsUpdateClient ... ExcludeSource=*The above are just examples.
A few notes:- IncludeEvent and ExcludeEvent are for Event IDs. You can configure a range like 100-200. But you cannot add a comma separated list. You can however add multiple Include/ExcludeEvent lines.
- If you do not configure any Include or Exclude at all, everything in that log will be synced. That's the default.
- Explicit Includes override Excludes. So if you configure an IncludeEvent=201 and an ExcludeEvent=200-300, you will receive all Events except 200 and 202-300.
- IncludeSource and ExcludeSource are the Sources in the given log. I expect this to basically the same as if you configured a Source in a Logwatch rule, but I have not actually tested this at all.
- From what I can tell, you cannot configure specific combinations of Event and Source, e.g. only syncing Event ID 100 for Source MySource won't work.
- ExcludeSource=* means exclude every source. You'll need an explicit IncludeSource to override that. But ExcludeEvent does not accept *. Here you'd need to use 0-65535 to exclude all Event IDs. That matters if you only want to collect very specific events, say from the Security log.
- You can configure an Agent Policy with an Agent Configuration to deploy your configuration to agents.
- DebugLevel=6 will give you debugging output related to winsyncevent (and everything else) in your agent logs
- I have not played with the Windows Event Parser yet. But looks to me like that's basically the same as configuring a Logwatch parser rule, really. Just that it'll be processed on the NetXMS server instead of the client.
-
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login