<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Window log monitoring: get the event id in the event's message]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">i have configured netxms for Window Event log monitoring and i'm able to obtain the log from the device.<br />
Here is an example of my parser file:</p>
<p dir="auto">&lt;parser&gt;&lt;file&gt;*Security&lt;/file&gt;&lt;rules&gt;&lt;rule&gt;&lt;match&gt;(.*)&lt;/match&gt;&lt;id&gt;1102&lt;/id&gt;&lt;event params="1"&gt;100007&lt;/event&gt;&lt;/rule&gt;&lt;rule&gt;&lt;match&gt;(.*)&lt;/match&gt;&lt;id&gt;5025&lt;/id&gt;&lt;event params="1"&gt;100007&lt;/event&gt;&lt;/rule&gt;&lt;!-- more &lt;rule&gt; tags can follow --&gt;&lt;/rules&gt;&lt;/parser&gt;</p>
<p dir="auto">If you look at the image in attachment, i'm able to get all data present in the text area of the general tab (From "Faulting app" ..........to "...643") .<br />
Now, i need to include in the information sent from the Window machine to Netxms the ID of the Window Event.<br />
How can i do this?<br />
My goal is to have an unique netxms event for the log, and in the message area of the log i put, further the data i already get, the event id of the log; generally, i don't want a netxms event for each event id I'm monitoring.</p>
<p dir="auto">In the Window Event log, if I look in the Detail tab of an event, i see are present 2 main area:<br />
-System<br />
-UserData</p>
<p dir="auto">Using the regular expression (.*) i get the info presents in UserData area, while the id of the event is stored in the System area...So,Is there a way to get the data presents in the System area?<br />
If it's impossible get the event id from the Event Log, my idea is to pass the event id statically throught the parser file. My idea is:<br />
instead of pass only 1 parameter in the event tag (event params="1"&gt;100007&lt;/event&gt;), i want to pass two parameters: 1 for the data obtained from the Event log and 2 for the ID, that i insert manually in the parser file. Suppose that i want to pass the ID 4624, i expect something like: event params="1&amp;2=4624"&gt;100007&lt;/event&gt;<br />
It's possible?</p>
<p dir="auto">Thank you for the support!</p>
<hr />
<p dir="auto"><img src="/assets/uploads/files/smf/0000000001250-PCP304.make6.error-580-90.jpg" alt="PCP304.make6.error-580-90.jpg" class="img-markdown  img-fluid" width="900" height="594" /></p>
]]></description><link>https://forum.netxms.org/topic/2481/window-log-monitoring-get-the-event-id-in-the-event-s-message</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 22:37:56 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/2481.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 15 Jul 2013 16:38:17 GMT</pubDate><ttl>60</ttl></channel></rss>