<?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[Windows Even Log parser rule causes server crash]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I'm trying to set up a log parser rule that would trigger an event if an administrator logs on to a monitored computer, however this rule causes the NetXMS server to crash with segmentation fault.</p>
<p dir="auto">NetXMS Server versions that I've tried: 4.5.3, 4.5.4</p>
<p dir="auto">The parser which causes the crash (made it with the GUI then switched to the XML view):</p>
<pre><code>&lt;parser name="Default parser"&gt;
   &lt;macros/&gt;
   &lt;rules&gt;
      &lt;rule name="Admin logon"&gt;
         &lt;match repeatInterval="0" reset="false"&gt;Emelt szintű jogkivonat:\s+Igen(?:.|\n)+Fióknév:\s+(\w+)&lt;/match&gt;
         &lt;event&gt;VV_ADMIN_LOGON&lt;/event&gt;
         &lt;id&gt;4624&lt;/id&gt;
         &lt;agentAction action=""&gt;&lt;/agentAction&gt;
      &lt;/rule&gt;
   &lt;/rules&gt;
&lt;/parser&gt;
</code></pre>
<p dir="auto">Windows event 4624 is created when a user logs in and with this rule I'd like to check if they're an administrator and what is their name. (The monitored desktops run Windows 10 with Hungarian language.)</p>
<p dir="auto">How could I solve this?</p>
]]></description><link>https://forum.netxms.org/topic/7893/windows-even-log-parser-rule-causes-server-crash</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 09:20:31 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/7893.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 14 Mar 2024 13:09:43 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Windows Even Log parser rule causes server crash on Tue, 19 Mar 2024 13:06:47 GMT]]></title><description><![CDATA[<p dir="auto">Finally with the next regex I managed to get it working, so it's only matching admin users' logins:</p>
<pre><code>Virtuális fiók:\t\tNem.*Emelt szintű jogkivonat:\t\tIgen.*Fióknév:\t\t(\w+).*Fiók tartománya:\t\t(?!NT AUTHORITY)
</code></pre>
]]></description><link>https://forum.netxms.org/post/33334</link><guid isPermaLink="true">https://forum.netxms.org/post/33334</guid><dc:creator><![CDATA[noel]]></dc:creator><pubDate>Tue, 19 Mar 2024 13:06:47 GMT</pubDate></item><item><title><![CDATA[Reply to Windows Even Log parser rule causes server crash on Mon, 18 Mar 2024 23:05:28 GMT]]></title><description><![CDATA[<p dir="auto">I did manage to get events when trying simple regexes that didn't try to match multiple lines of windows log messages.<br />
But I'm a bit confused now about what is the tested string, since the docs only mention single lines, but the windows event is multiple lines and when I simply put (.*) as the match regex, in the event %1 was a multi line string with the full windows event message; which is strange since as far as I know . matches everything except new line; but either way the regex I used had . and explicit \r\n matched multiple times so it should've catched each case, also it worked when I tested it on <a href="http://regexr.com" rel="nofollow ugc">regexr.com</a></p>
]]></description><link>https://forum.netxms.org/post/33328</link><guid isPermaLink="true">https://forum.netxms.org/post/33328</guid><dc:creator><![CDATA[noel]]></dc:creator><pubDate>Mon, 18 Mar 2024 23:05:28 GMT</pubDate></item><item><title><![CDATA[Reply to Windows Even Log parser rule causes server crash on Mon, 18 Mar 2024 16:03:02 GMT]]></title><description><![CDATA[<p dir="auto">I'd guess the unit is ms, but I'll check.</p>
<p dir="auto">And if your try policy as simple as that:</p>
<pre><code>&lt;parser checkInterval="10000" name=""&gt;
  &lt;macros/&gt;
  &lt;file&gt;*Security&lt;/file&gt;
  &lt;rules&gt;
      &lt;rule name=""&gt;
        &lt;match repeatCount="0" repeatInterval="1"&gt;.*&lt;/match&gt;
        &lt;event&gt;A&lt;/event&gt;
        &lt;metrics class="java.util.ArrayList"/&gt;
        &lt;agentAction action=""&gt;&lt;/agentAction&gt;
      &lt;/rule&gt;
  &lt;/rules&gt;
&lt;/parser&gt;
</code></pre>
<p dir="auto">will there be any events?</p>
<p dir="auto">Checklist of things:</p>
<ul>
<li>agent should have this in it's config:</li>
</ul>
<pre><code>SubAgent = logwatch
</code></pre>
<ul>
<li>template with the policy should be applied to node</li>
</ul>
]]></description><link>https://forum.netxms.org/post/33322</link><guid isPermaLink="true">https://forum.netxms.org/post/33322</guid><dc:creator><![CDATA[Filipp Sudanov]]></dc:creator><pubDate>Mon, 18 Mar 2024 16:03:02 GMT</pubDate></item><item><title><![CDATA[Reply to Windows Even Log parser rule causes server crash on Mon, 18 Mar 2024 12:40:04 GMT]]></title><description><![CDATA[<p dir="auto">I tried creating a template and added a log parser policy with the following content:</p>
<pre><code>&lt;parser checkInterval="1" name="Admin activity parser"&gt;
   &lt;macros/&gt;
   &lt;file&gt;*Security&lt;/file&gt;
   &lt;rules&gt;
      &lt;rule name="Login"&gt;
         &lt;match repeatCount="0" repeatInterval="3600" reset="false"&gt;Emelt szintű jogkivonat:\s+Igen(?:.|\r\n)+Fióknév:\s+(\w+)&lt;/match&gt;
         &lt;event&gt;VV_ADMIN_LOGON&lt;/event&gt;
         &lt;id&gt;4624&lt;/id&gt;
         &lt;push group="1"&gt;&lt;/push&gt;
         &lt;agentAction action=""&gt;&lt;/agentAction&gt;
      &lt;/rule&gt;
   &lt;/rules&gt;
&lt;/parser&gt;
</code></pre>
<p dir="auto">It didn't crash the server however it also doesn't trigger the event, I tried to:</p>
<ul>
<li>reduce the checkInterval from the default 10000 to 1 (what is the unit for this?)</li>
<li>make the regex match the whole message</li>
<li>use literal \r\n and \t in the expression</li>
</ul>
<p dir="auto">I made sure that the template is applied to the node I'm testing with, and in the windows events view I can see the windows event for the login. Also I'm still running netxmsd from gdb and I can only see entries like this and nothing else when I log into an account on the client:</p>
<pre><code>*D* [agent.conn.10794   ] AgentConnectionEx::onWindowsEvent(): Received event from agent at 10.255.7.114, node ID 1814
</code></pre>
]]></description><link>https://forum.netxms.org/post/33321</link><guid isPermaLink="true">https://forum.netxms.org/post/33321</guid><dc:creator><![CDATA[noel]]></dc:creator><pubDate>Mon, 18 Mar 2024 12:40:04 GMT</pubDate></item><item><title><![CDATA[Reply to Windows Even Log parser rule causes server crash on Mon, 18 Mar 2024 07:49:19 GMT]]></title><description><![CDATA[<p dir="auto">Attached the full bt output. I'll also try the suggested method and get back with the results.</p>
<hr />
<p dir="auto"><a href="/assets/uploads/files/smf/0000000006627-gdb.txt">gdb.txt</a></p>
]]></description><link>https://forum.netxms.org/post/33317</link><guid isPermaLink="true">https://forum.netxms.org/post/33317</guid><dc:creator><![CDATA[noel]]></dc:creator><pubDate>Mon, 18 Mar 2024 07:49:19 GMT</pubDate></item><item><title><![CDATA[Reply to Windows Even Log parser rule causes server crash on Fri, 15 Mar 2024 18:23:36 GMT]]></title><description><![CDATA[<p dir="auto">It would be good if you can collect some debug information. If your server is on Linux:</p>
<ul>
<li>install netxms-dbg and gdb packages</li>
<li>stop netxms server:<br />
<strong>systemctl stop netxmsd</strong></li>
<li>launch it under gdb:<br />
<strong>gdb --args netxmsd -D 3</strong></li>
</ul>
<p dir="auto">then enter <strong>run</strong></p>
<p dir="auto">when it crashes, enter <strong>bt</strong> and show us the output</p>
<p dir="auto">----</p>
<p dir="auto">Meanwhile, you can use another option to monitor windows event logs - by adding log parser policy to a template and applying that template to your nodes. <a href="https://www.netxms.org/documentation/adminguide/log-monitoring.html#file-tag" rel="nofollow ugc">https://www.netxms.org/documentation/adminguide/log-monitoring.html#file-tag</a><br />
Chances are that this bug will not appear if using this approach (but may be not)</p>
]]></description><link>https://forum.netxms.org/post/33312</link><guid isPermaLink="true">https://forum.netxms.org/post/33312</guid><dc:creator><![CDATA[Filipp Sudanov]]></dc:creator><pubDate>Fri, 15 Mar 2024 18:23:36 GMT</pubDate></item></channel></rss>