<?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.Scan()?]]></title><description><![CDATA[<p dir="auto">Hello everyone,</p>
<p dir="auto">First a happy new year and best wishes for everyone.</p>
<p dir="auto">I would like to know how the function Log.Scan is used. I can see it on one of the screenshots, but don't find any documentation on it.<br />
I basically want to read a text file, and check for the content of the file...</p>
<p dir="auto">Thanxx in advance for the help...<br />
Peter.</p>
]]></description><link>https://forum.netxms.org/topic/175/log.scan</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 06:38:07 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/175.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 09 Jan 2008 10:03:51 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Log.Scan()? on Wed, 18 Jun 2008 13:09:18 GMT]]></title><description><![CDATA[<p dir="auto">Still only a plans unfortunately....</p>
]]></description><link>https://forum.netxms.org/post/1910</link><guid isPermaLink="true">https://forum.netxms.org/post/1910</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Wed, 18 Jun 2008 13:09:18 GMT</pubDate></item><item><title><![CDATA[Reply to Log.Scan()? on Wed, 18 Jun 2008 06:53:57 GMT]]></title><description><![CDATA[<p dir="auto">is it support a Windows Event Logs?<br />
<img src="https://forum.netxms.org/assets/plugins/nodebb-plugin-emoji/emoji/android/1f603.png?v=72b86a538fc" class="not-responsive emoji emoji-android emoji--smiley" style="height:1.4em;width:auto;vertical-align:middle" title="=)" alt="😃" /></p>
<p dir="auto">or this @ plan only...?</p>
]]></description><link>https://forum.netxms.org/post/1906</link><guid isPermaLink="true">https://forum.netxms.org/post/1906</guid><dc:creator><![CDATA[Anth0ny]]></dc:creator><pubDate>Wed, 18 Jun 2008 06:53:57 GMT</pubDate></item><item><title><![CDATA[Reply to Log.Scan()? on Mon, 21 Jan 2008 10:55:32 GMT]]></title><description><![CDATA[<p dir="auto">Ok, thank you very much for your help. After adding the Logscan.nsm to the client config file and restarting the client and core, I can indeed search a textfile... Very nice!</p>
]]></description><link>https://forum.netxms.org/post/932</link><guid isPermaLink="true">https://forum.netxms.org/post/932</guid><dc:creator><![CDATA[prutser]]></dc:creator><pubDate>Mon, 21 Jan 2008 10:55:32 GMT</pubDate></item><item><title><![CDATA[Reply to Log.Scan()? on Fri, 11 Jan 2008 15:30:55 GMT]]></title><description><![CDATA[<p dir="auto">Hello.</p>
<p dir="auto">Actually, log scanner in it current state is a more a hack than a production grade code - it was made for a specific task.<br />
However, you can try to use it:</p>
<ol>
<li>while logscan subagent is already included in windows version (i believe so), you should compile it manually on unix (or add "--enable-unstable" parameter to configure, this will enable some additional features, including logscan subagent):</li>
</ol>
<pre><code>$ cd netxms-VERSION
$ ./configure ...
$ cd src/agent/subagents/logscan
$ make install
</code></pre>
<ol start="2">
<li>add libnsm_logscan.so/logscan.nsm to you nxagentd.conf (SubAgent parameter)</li>
<li>now you can call LogScan.FindString parameter with two arguments: filename and substring to search. If substring is found - whole string returned, empty string otherwise.</li>
</ol>
<p dir="auto">LogScan works on per-line basis; it stops search when substring is found, so if you have multiple lines matching - FindString will return them all. Position in file is persisted between requests; log rotation is detected only by file size (e.g. if last known file position is beyond the end of file)</p>
<p dir="auto">wbr, alex.</p>
]]></description><link>https://forum.netxms.org/post/874</link><guid isPermaLink="true">https://forum.netxms.org/post/874</guid><dc:creator><![CDATA[alk]]></dc:creator><pubDate>Fri, 11 Jan 2008 15:30:55 GMT</pubDate></item></channel></rss>