<?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[Parse log file without trailing newline]]></title><description><![CDATA[<p dir="auto">Hi.</p>
<p dir="auto">I have a log parser for TeamViewer's "Connections_incoming.txt". Example file attached.<br />
It works when i manually add a new line with a trailing newline (CRLF), but TeamViewer doesn't add a newline at the end of new log entries, it's added at the beginning (which means the log file has an empty row at the top).</p>
<p dir="auto">How can I make NetXMS notice new log entries when they doesn't end with CRLF?</p>
<p dir="auto">While I'm at it, if I use named captures, how do I reference them by name in the Event Message?</p>
<pre><code>(?&lt;ID&gt;.*?)\t(?&lt;RemoteClient&gt;.*?)\t(?&lt;StartTime&gt;.*?)\t(?&lt;EndTime&gt;.*?)\t(?&lt;LoggedonUser&gt;.*?)\t(?&lt;Action&gt;.*?)\t(?&lt;GUID&gt;.*?)\t
</code></pre>
<hr />
<p dir="auto"><a href="/assets/uploads/files/smf/0000000006241-Connections_incoming.txt">Connections_incoming.txt</a></p>
]]></description><link>https://forum.netxms.org/topic/7541/parse-log-file-without-trailing-newline</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 09:39:29 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/7541.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 25 Oct 2022 18:32:25 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Parse log file without trailing newline on Tue, 01 Nov 2022 10:27:23 GMT]]></title><description><![CDATA[<p dir="auto">Ah, ok.  Thank you very much!</p>
]]></description><link>https://forum.netxms.org/post/31973</link><guid isPermaLink="true">https://forum.netxms.org/post/31973</guid><dc:creator><![CDATA[mashedpotatorocket]]></dc:creator><pubDate>Tue, 01 Nov 2022 10:27:23 GMT</pubDate></item><item><title><![CDATA[Reply to Parse log file without trailing newline on Mon, 31 Oct 2022 14:55:13 GMT]]></title><description><![CDATA[<p dir="auto">It is not possible without changes in log parser code. Named capture groups also not supported. I've added feature requests for both:</p>
<p dir="auto"><a href="https://track.radensolutions.com/issue/NX-2312" rel="nofollow ugc">https://track.radensolutions.com/issue/NX-2312</a><br />
<a href="https://track.radensolutions.com/issue/NX-2313" rel="nofollow ugc">https://track.radensolutions.com/issue/NX-2313</a></p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/31968</link><guid isPermaLink="true">https://forum.netxms.org/post/31968</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Mon, 31 Oct 2022 14:55:13 GMT</pubDate></item></channel></rss>