<?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[Event Log parsing]]></title><description><![CDATA[<p dir="auto">I am trying to parse the windows application event log to look for sql agent jobs failures.<br />
I want the full windows event log text sent over email since there can be a lot of job fails.</p>
<p dir="auto">Agent parse file configuration looks like this</p>
<p dir="auto">&lt;parser&gt;<br />
  &lt;file&gt;*Application&lt;/file&gt;<br />
  &lt;rules&gt;<br />
    &lt;rule&gt;<br />
      &lt;severity&gt;6&lt;/severity&gt;<br />
      &lt;match&gt;(SQL Server Scheduled Job)*(Message: The job failed)*&lt;/match&gt;<br />
      &lt;event params="1"&gt;100025&lt;/event&gt;<br />
    &lt;/rule&gt;<br />
  &lt;/rules&gt;<br />
&lt;/parser&gt;<br />
If I let it configured like this it will only send some generic information.<br />
If I replace &lt;match&gt;(.*)&lt;/match&gt; it will send the full event text.<br />
In both situation it will send the message twice.<br />
What am I doing wrong?</p>
]]></description><link>https://forum.netxms.org/topic/2849/event-log-parsing</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 14:55:03 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/2849.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 15 Jan 2014 08:31:17 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Event Log parsing on Fri, 17 Jan 2014 12:59:17 GMT]]></title><description><![CDATA[<p dir="auto">Once again thanks a lot.<br />
It's working like a charm.</p>
]]></description><link>https://forum.netxms.org/post/12487</link><guid isPermaLink="true">https://forum.netxms.org/post/12487</guid><dc:creator><![CDATA[iliecz]]></dc:creator><pubDate>Fri, 17 Jan 2014 12:59:17 GMT</pubDate></item><item><title><![CDATA[Reply to Event Log parsing on Fri, 17 Jan 2014 12:34:17 GMT]]></title><description><![CDATA[<p dir="auto">Hi!</p>
<p dir="auto">You should replace * with parser's name. By default parser name is file name (given in &lt;file&gt;), but you can override it with name attribute, like this:</p>
<p dir="auto">&lt;parser name="AppLog"&gt;<br />
  &lt;file&gt;*Application&lt;/file&gt;<br />
  &lt;rules&gt;<br />
    &lt;rule&gt;<br />
      &lt;severity&gt;6&lt;/severity&gt;<br />
      &lt;match&gt;(SQL Server Scheduled Job)*(Message: The job failed)*&lt;/match&gt;<br />
      &lt;event params="1"&gt;100025&lt;/event&gt;<br />
    &lt;/rule&gt;<br />
  &lt;/rules&gt;<br />
&lt;/parser&gt;</p>
<p dir="auto">and then use LogWatch.Parser.MatchedRecords(AppLog)</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/12485</link><guid isPermaLink="true">https://forum.netxms.org/post/12485</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Fri, 17 Jan 2014 12:34:17 GMT</pubDate></item><item><title><![CDATA[Reply to Event Log parsing on Fri, 17 Jan 2014 12:05:36 GMT]]></title><description><![CDATA[<p dir="auto">Thanks, it worked!<br />
Now I have another issue with establishing a counter for the matched records and displayed in a dashboard.<br />
I think the parameter I need is LogWatch.Parser.MatchedRecords(*) .<br />
Simply placing this parameter in Data Collection Configuration dose not work<br />
What do I need to replace * with in order to run correctly?</p>
]]></description><link>https://forum.netxms.org/post/12484</link><guid isPermaLink="true">https://forum.netxms.org/post/12484</guid><dc:creator><![CDATA[iliecz]]></dc:creator><pubDate>Fri, 17 Jan 2014 12:05:36 GMT</pubDate></item><item><title><![CDATA[Reply to Event Log parsing on Wed, 15 Jan 2014 13:26:26 GMT]]></title><description><![CDATA[<p dir="auto">Hi!</p>
<p dir="auto">It probably should be something like this:</p>
<p dir="auto">&lt;match&gt;(SQL Server Scheduled Job.*Message: The job failed.*)&lt;/match&gt;</p>
<p dir="auto">if you want to capture full text but match only messages with certain words in it.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/12466</link><guid isPermaLink="true">https://forum.netxms.org/post/12466</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Wed, 15 Jan 2014 13:26:26 GMT</pubDate></item></channel></rss>