Parsing windows event logs and generating alarms
-
-
As I remember, this information might be present in parameters of that event. If you open Event Log in NetXMS, find such event there and double-click it, a window should open with event details. Please share it here
-
-
Right, looks like you are using Windows Event Log synchronization.
But how do details of NetXMS event "Win Event - Failed account log on" look in NetXMS event log?
-
-
On your screenshot it's Event Monitor (which is updated in real-time). If you find this event in Event Log and double-click on it, you should have something like this:

-
-
In my example event was generated by Event Log Parser on agent, by adding a Log Parser Policy. In case of Win Event Sync there's less information available.
-
-
Sure, here's a couple of screenshots. First is log parser policy, file name is *Security which means that it's reading Security windows event log. It's picking only records with ID = 4624. Matching regular expression is .*, we can also use capture groups here, at maximum we can just put (.*), but this will pick the whole multi-line event description. Capture groups, if any, will also go as NetXMS event parameters.
On second screenshot we have event template. Message field describes which event parameters we use to compose the message - it's better to use parameter names instead of %1, %2, as number of parameters may change, e.g. if we add a new capture group, but names will stay the same.
Remember, that you need to apply the template to a node for this to start working.


-
-
[color=#404040][size=2][font=SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, Courier, monospace][color=#4070a0]SubAgent[/color] [color=#666666]=[/color] [color=#4070a0]logwatch[/color][/font][/size][/color]is needed in agent config
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








