<?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[Filtering Script in EventProcessing]]></title><description><![CDATA[<p dir="auto">Hello @all,</p>
<p dir="auto">i'd like to implement a filtering script in event processing:</p>
<p dir="auto">-----<br />
if ($event-&gt;message like “*ERP Basis System*”){<br />
  return false; // Match rule<br />
}<br />
return true;<br />
-----</p>
<p dir="auto">Event processing should only throw a alarm, if there is NOT the text "ERP Basis System" in the message text of the event. How can/must i use wildcards in filtering scripts?</p>
<p dir="auto">Thanks for helping me...</p>
<p dir="auto">Greets<br />
Marco</p>
]]></description><link>https://forum.netxms.org/topic/3844/filtering-script-in-eventprocessing</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 13:22:04 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/3844.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 25 Jun 2015 10:51:13 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Filtering Script in EventProcessing on Fri, 26 Jun 2015 12:16:08 GMT]]></title><description><![CDATA[<p dir="auto">I found a solution myself. I'm using following filter script in events to filter the message text with wildcards:</p>
<p dir="auto">if($event-&gt;message ~= "(.*)ERP Basis System(.*)") return false;<br />
else return true;</p>
<p dir="auto">Greets<br />
Marco</p>
]]></description><link>https://forum.netxms.org/post/17178</link><guid isPermaLink="true">https://forum.netxms.org/post/17178</guid><dc:creator><![CDATA[Spheron]]></dc:creator><pubDate>Fri, 26 Jun 2015 12:16:08 GMT</pubDate></item><item><title><![CDATA[Reply to Filtering Script in EventProcessing on Thu, 25 Jun 2015 14:39:41 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for the reply. I understand this.</p>
<p dir="auto">But i think that the code from above is false. Can i use "*" als wildcard in filtering code? Is the script above functional in NetXMS?</p>
]]></description><link>https://forum.netxms.org/post/17173</link><guid isPermaLink="true">https://forum.netxms.org/post/17173</guid><dc:creator><![CDATA[Spheron]]></dc:creator><pubDate>Thu, 25 Jun 2015 14:39:41 GMT</pubDate></item><item><title><![CDATA[Reply to Filtering Script in EventProcessing on Thu, 25 Jun 2015 11:44:40 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">in matching scripts true means "match" and false means "do not match".</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/17171</link><guid isPermaLink="true">https://forum.netxms.org/post/17171</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Thu, 25 Jun 2015 11:44:40 GMT</pubDate></item></channel></rss>