<?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[Problems with logwatch]]></title><description><![CDATA[<p dir="auto">Hi</p>
<p dir="auto">Hopefully someone can help me understand what is going wrong.</p>
<p dir="auto">I'm trying to monitor a log file for changes using logwatch.</p>
<p dir="auto">The logfile is one i'm creating using dos rasdial to connect to a vpn and do certain tests, so log format is:</p>
<pre><code>14-12-2009 13:05:00,19
Connecting to BDO PPTP...
Verifying username and password...
Registering your computer on the network...
Successfully connected to BDO PPTP.
Command completed successfully.


Pinging 10.1.25.1 with 32 bytes of data:



Request timed out.

Reply from 10.1.25.1: bytes=32 time=90ms TTL=128

Reply from 10.1.25.1: bytes=32 time=34ms TTL=128

Reply from 10.1.25.1: bytes=32 time=34ms TTL=128



Ping statistics for 10.1.25.1:

    Packets: Sent = 4, Received = 3, Lost = 1 (25% loss),

Approximate round trip times in milli-seconds:

    Minimum = 34ms, Maximum = 90ms, Average = 52ms



Pinging 10.1.1.1 with 32 bytes of data:



Request timed out.

Reply from 10.1.1.1: bytes=32 time=34ms TTL=63

Reply from 10.1.1.1: bytes=32 time=34ms TTL=63

Reply from 10.1.1.1: bytes=32 time=34ms TTL=63



Ping statistics for 10.1.1.1:

    Packets: Sent = 4, Received = 3, Lost = 1 (25% loss),

Approximate round trip times in milli-seconds:

    Minimum = 34ms, Maximum = 34ms, Average = 34ms

Command completed successfully.
</code></pre>
<p dir="auto">then i'm using logwatch and try to look for changes, but so far all i can catch is the ping failure, maybe my regex code is wrong?</p>
<pre><code>&lt;parser processAll="0"&gt;
	&lt;file&gt;c:\netxms\bdo_pptp_vpn_log.txt&lt;/file&gt;
	&lt;macros&gt;
		&lt;macro name="timestamp"&gt;[0-9]{2}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}&lt;/macro&gt;
	&lt;/macros&gt;
	&lt;rules&gt;
                &lt;rule break="1"&gt;
			&lt;match&gt;^(?=.*?\connection\b)(?=.*?\cannot\b)(?=.*?\completed\b).*$&lt;/match&gt;
			&lt;event&gt;100009&lt;/event&gt;
		&lt;/rule&gt;
                &lt;rule break="1"&gt;
			&lt;match&gt;^(?=.*?\computer\b)(?=.*?\not\b)(?=.*?\respond\b).*$&lt;/match&gt;
			&lt;event&gt;100010&lt;/event&gt;
		&lt;/rule&gt;
		&lt;rule break="1"&gt;
			&lt;match&gt;Request timed out.&lt;/match&gt;
			&lt;event&gt;100008&lt;/event&gt;
		&lt;/rule&gt;
        &lt;/rules&gt;
&lt;/parser&gt;
</code></pre>
]]></description><link>https://forum.netxms.org/topic/794/problems-with-logwatch</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 09:21:56 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/794.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 14 Dec 2009 12:13:03 GMT</pubDate><ttl>60</ttl></channel></rss>