<?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[log parsing]]></title><description><![CDATA[<p dir="auto">hi,</p>
<p dir="auto">how do i define several parameters to be passed in the &lt;event&gt;.<br />
what will happen if i will write a variable name after the dot ?<br />
for example:<br />
&lt;match&gt;process:(.var)&lt;/match&gt;<br />
&lt;event params="1"&gt;200000&lt;/event&gt;</p>
<p dir="auto">will the param name be "var" ?</p>
<p dir="auto">10x,<br />
lindeamon</p>
]]></description><link>https://forum.netxms.org/topic/1297/log-parsing</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 12:15:15 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/1297.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 14 Aug 2011 15:31:57 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to log parsing on Tue, 16 Aug 2011 07:21:12 GMT]]></title><description><![CDATA[<p dir="auto">thank you very much</p>
]]></description><link>https://forum.netxms.org/post/5757</link><guid isPermaLink="true">https://forum.netxms.org/post/5757</guid><dc:creator><![CDATA[lindeamon]]></dc:creator><pubDate>Tue, 16 Aug 2011 07:21:12 GMT</pubDate></item><item><title><![CDATA[Reply to log parsing on Tue, 16 Aug 2011 06:16:07 GMT]]></title><description><![CDATA[<ol>
<li>No. You should create separate xml file for each parser.</li>
<li>You can pass as many parameters as you like. Attribute params contains number of parameters, so if you have 4 parameters for the event, you will have &lt;event params="4"&gt;. Of course you have to have appropriate number of capturing groups in regular expression.</li>
</ol>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/5753</link><guid isPermaLink="true">https://forum.netxms.org/post/5753</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Tue, 16 Aug 2011 06:16:07 GMT</pubDate></item><item><title><![CDATA[Reply to log parsing on Tue, 16 Aug 2011 05:10:48 GMT]]></title><description><![CDATA[<p dir="auto">thank you victor.<br />
i have another 2 questions that came up my mind reading your answer.</p>
<ol>
<li>can one xml file contain 2 &lt;parser&gt; sections ?</li>
<li>can the &lt;event&gt; contain two attributes meaning passing the two param ? something like this &lt;event params="1","2"&gt; or &lt;event params="1",params="2"&gt;</li>
</ol>
<p dir="auto">10x,<br />
lindeamon</p>
]]></description><link>https://forum.netxms.org/post/5751</link><guid isPermaLink="true">https://forum.netxms.org/post/5751</guid><dc:creator><![CDATA[lindeamon]]></dc:creator><pubDate>Tue, 16 Aug 2011 05:10:48 GMT</pubDate></item><item><title><![CDATA[Reply to log parsing on Mon, 15 Aug 2011 06:58:44 GMT]]></title><description><![CDATA[<p dir="auto">hi!</p>
<p dir="auto">currently named parameters are not supported in the log parser. If you pass multiple parameters, they will be numbered in order they appear in regexp. For example, if you have the following rule:</p>
<p dir="auto">&lt;match&gt;Error (.*) at (.*)&lt;/match&gt;<br />
&lt;event params="2"&gt;200000&lt;/match&gt;</p>
<p dir="auto">You will have two parameters - number 1 and number 2, and it will be possible to use them in macro expansion as %1 and %2. For log record</p>
<p dir="auto">Error 4 at test</p>
<p dir="auto">with this rule you will have<br />
%1 == "4"<br />
%2 == "test"</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/5731</link><guid isPermaLink="true">https://forum.netxms.org/post/5731</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Mon, 15 Aug 2011 06:58:44 GMT</pubDate></item></channel></rss>