<div dir="auto"><div>Christian<div dir="auto"><br></div><div dir="auto">I don't think it matters that the pattern is not at the start of the line.</div><div dir="auto"><br></div><div dir="auto">However, I don't think you can have spaces in the filename. Instead you should wrap it on double quotes. Perhaps try this:</div><div dir="auto"><br></div><div dir="auto"><span style="color:rgb(0,112,192);font-family:"courier new";text-indent:47.2px">LOG </span><span style="color:rgb(0,112,192);font-family:"courier new";text-indent:47.2px">"</span><span style="color:rgb(0,112,192);font-family:"courier new";text-indent:47.2px">C:\Program Files\PATH-TO-LOGFILE\</span><span style="color:rgb(0,112,192);font-family:"courier new";text-indent:47.2px">filename.log</span><span style="color:rgb(0,112,192);font-family:"courier new";text-indent:47.2px">"</span><span style="color:rgb(0,112,192);font-family:"courier new";text-indent:47.2px"> "Unable to cancel connection to" COLOR=RED</span></div><div dir="auto"><br></div><div dir="auto">The fact that you're getting the correct filename in the status page suggests that the clientlocal.cfg configuration is correct. So is just a matter of tweaking the analysis.cfg entry.</div><div dir="auto"><br></div><div dir="auto">I have to admit that I don't use the psclient so I don't have much experience to offer.</div><div dir="auto"><br></div><div dir="auto">Cheers</div><div dir="auto">Jeremy</div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 19 Aug 2020, 17:27 Becker Christian, <<a href="mailto:christian.becker@rhein-zeitung.net">christian.becker@rhein-zeitung.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="DE" link="blue" vlink="purple">
<div class="m_-3381977796244899323WordSection1">
<p class="MsoNormal"><span>Jeremy,<u></u><u></u></span></p>
<p class="MsoNormal"><span><u></u> <u></u></span></p>
<p class="MsoNormal"><span><u></u> <u></u></span></p>
<p class="MsoNormal"><span>Sorry for writing it a bit weird.
<u></u><u></u></span></p>
<p class="MsoNormal"><span>As soon as i configure the logfile in client-local.cfg and analysis.cfg, it shows up a couple of minutes later in the msgs column showing the name oft he logfile only, not it’s content.<u></u><u></u></span></p>
<p class="MsoNormal"><span><u></u> <u></u></span></p>
<p class="MsoNormal"><span>The upper line says
<span style="color:#0070c0">No entries in C:\Program Files\PATH-TO-LOGFILE\filename.log</span>, the second line says
<span style="color:#0070c0">Full log</span> <span style="color:#0070c0">C:\Program Files\PATH-TO-LOGFILE\filename.log</span> and that’s it.<u></u><u></u></span></p>
<p class="MsoNormal"><span><u></u> <u></u></span></p>
<p class="MsoNormal"><span>Now i have configured as described by you by enclosing the pattern in quotes:<u></u><u></u></span></p>
<p class="MsoNormal" style="text-indent:35.4pt">
<span style="font-family:"Courier New";color:#0070c0">LOG C:\Program Files\PATH-TO-LOGFILE\filename.log "Unable to cancel connection to" COLOR=RED</span><u></u><u></u></p>
<p class="MsoNormal"><span>After very long time, every now and then (and not on a regular basis…) the appropriate line shows up below the line
<span style="color:#0070c0">Full log</span> <span style="color:#0070c0">C:\Program Files\PATH-TO-LOGFILE\filename.log
</span>but the test stays green, but the pattern is present more than 50 times and it is actually written into the logfile.<u></u><u></u></span></p>
<ul style="margin-top:0cm" type="disc">
<li class="m_-3381977796244899323MsoListParagraph" style="margin-left:0cm"><span>Does it matter, that the pattern is
<b>NOT</b> at the beginning of the line of the logfile?? (There are time stamps before the pattern and return codes after it….).<u></u><u></u></span></li></ul>
<p class="MsoNormal"><span><u></u> <u></u></span></p>
<p class="MsoNormal"><span>Regards and thanks<u></u><u></u></span></p>
<p class="MsoNormal"><span>Christian<u></u><u></u></span></p>
<p class="MsoNormal"><span><u></u> <u></u></span></p>
<p class="MsoNormal"><span><u></u> <u></u></span></p>
<p class="MsoNormal"><span><u></u> <u></u></span></p>
<p class="MsoNormal"><span><u></u> <u></u></span></p>
<p class="MsoNormal"><span><u></u> <u></u></span></p>
<p class="MsoNormal"><span><u></u><u></u></span></p>
<p class="MsoNormal"><b>Von:</b> Jeremy Laidman <<a href="mailto:jeremy@laidman.org" target="_blank" rel="noreferrer">jeremy@laidman.org</a>> <br>
<b>Gesendet:</b> Donnerstag, 13. August 2020 01:43<br>
<b>An:</b> Becker Christian <<a href="mailto:christian.becker@rhein-zeitung.net" target="_blank" rel="noreferrer">christian.becker@rhein-zeitung.net</a>><br>
<b>Cc:</b> <a href="mailto:xymon@xymon.com" target="_blank" rel="noreferrer">xymon@xymon.com</a><br>
<b>Betreff:</b> Re: [Xymon] xymonpsclient (application) logfile monitoring<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">Hi Christian<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<p class="MsoNormal">Sorry, I'm not sure I understand what you mean. "It seems to me that ..." - does that mean: "From reading the docs, it seems to me that expected behaviour is..." or: "After the configuration changes, it seems to me that actual behaviour
 is...". It's my understanding that adding a LOG entry in analysis.cfg is for determining which log lines trigger an alert condition (eg red or yellow), but the rest of the log status page is the same - that is, it contains all of the log lines from the logfile
 since the last client status message (typically in the last 5 minutes).<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">The "pattern" is either a string or a regular expression. Your use of dots in the pattern suggest that you're expecting it to be a regular expression. However, you haven't prefixed it with "%" to tell Xymon this is the case. You perhaps
 want:<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal" style="text-indent:35.4pt">
<span style="font-family:"Courier New";color:#0070c0">LOG C:\Program Files\PATH-TO-LOGFILE\filename.log %<a href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Funable.to.cancel.connection.to%2F&data=02%7C01%7Cchristian.becker%40rhein-zeitung.net%7C40afbdde9df94afee73708d83f1971c1%7C4fed923898bc4f3b96450b99f4d1b669%7C0%7C0%7C637328725826273741&sdata=H1Bn0g3yozkqDOrWyIMEdTMlOiIyGV0L37eXQjLmyWE%3D&reserved=0" target="_blank" rel="noreferrer">Unable.to.cancel.connection.to</a>
 COLOR=RED</span><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">If the reason for the regexp is only to match spaces, because you don't want the words in the pattern to be treated as different LOG keywords, then you might find it easier to just enclose the pattern in quotes:<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal" style="text-indent:35.4pt">
<span style="font-family:"Courier New";color:#0070c0">LOG C:\Program Files\PATH-TO-LOGFILE\filename.log "Unable to cancel connection to" COLOR=RED</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Cheers<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Jeremy<u></u><u></u></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">On Wed, 12 Aug 2020 at 20:46, Becker Christian <<a href="mailto:christian.becker@rhein-zeitung.net" target="_blank" rel="noreferrer">christian.becker@rhein-zeitung.net</a>> wrote:<u></u><u></u></p>
</div>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<div>
<div>
<p class="MsoNormal">Hello to the list,<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">i need help in setting up logfile monitoring with xymonpsclient.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">My setup is a Windows 10 client pc, running xymonpsclient v2.42, reporting to a xymon server running xymon 4.3.30.<u></u><u></u></p>
<p class="MsoNormal">In the client-local.cfg i have configured the logfile that i want to monitor, and an amount of time later, the logfile shows up in the msgs column.<u></u><u></u></p>
<p class="MsoNormal">After that i configured analysis.cfg to look for a specific pattern in this logfile, it seems to me that only the appearance of this pattern is displayed in the msgs column, but
 nothing else from this logfile.<u></u><u></u></p>
<p class="MsoNormal">In addition tot hat, the msgs column didn’t change to red state.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Here’s the part of my client-local.cfg:<u></u><u></u></p>
<p class="MsoNormal" style="text-indent:35.4pt">
<span style="font-family:"Courier New";color:#0070c0">[win10client1]</span><u></u><u></u></p>
<p class="MsoNormal" style="text-indent:35.4pt">
<span style="font-family:"Courier New";color:#0070c0">log:C:\Program Files\PATH-TO-LOGFILE\filename.log:153600</span><u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">And here the part of my analysis.cfg:<u></u><u></u></p>
<p class="MsoNormal" style="text-indent:35.4pt">
<span style="font-family:"Courier New";color:#0070c0">HOST=win10client1</span><u></u><u></u></p>
<p class="MsoNormal" style="text-indent:35.4pt">
<span style="font-family:"Courier New";color:#0070c0">LOG C:\Program Files\PATH-TO-LOGFILE\filename.log
<a href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Funable.to.cancel.connection.to%2F&data=02%7C01%7Cchristian.becker%40rhein-zeitung.net%7C40afbdde9df94afee73708d83f1971c1%7C4fed923898bc4f3b96450b99f4d1b669%7C0%7C0%7C637328725826273741&sdata=H1Bn0g3yozkqDOrWyIMEdTMlOiIyGV0L37eXQjLmyWE%3D&reserved=0" target="_blank" rel="noreferrer">
Unable.to.cancel.connection.to</a> COLOR=RED</span><u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">With this setup it seems to me that only lines containing this pattern
<span style="font-family:"Courier New";color:#0070c0"><a href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Funable.to.cancel.connection.to%2F&data=02%7C01%7Cchristian.becker%40rhein-zeitung.net%7C40afbdde9df94afee73708d83f1971c1%7C4fed923898bc4f3b96450b99f4d1b669%7C0%7C0%7C637328725826283696&sdata=C%2FrRN9NdzIR1Vk9UNKVWmD6AySz8TX5gzTDYiIM706c%3D&reserved=0" target="_blank" rel="noreferrer">Unable.to.cancel.connection.to</a></span>
 are displayed in the msgs column of win10client1.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Any idea what i’m doing wrong? Or do i understand any basics the wrong way?<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Regards<u></u><u></u></p>
<p class="MsoNormal">Christian<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
</div>
<p class="MsoNormal">_______________________________________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com" target="_blank" rel="noreferrer">Xymon@xymon.com</a><br>
<a href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.xymon.com%2Fmailman%2Flistinfo%2Fxymon&data=02%7C01%7Cchristian.becker%40rhein-zeitung.net%7C40afbdde9df94afee73708d83f1971c1%7C4fed923898bc4f3b96450b99f4d1b669%7C0%7C0%7C637328725826283696&sdata=JdJoBZV2MI5%2B7Bm8YC0a8k4zxfCKpBlF%2FldnZOyZTKE%3D&reserved=0" target="_blank" rel="noreferrer">http://lists.xymon.com/mailman/listinfo/xymon</a><u></u><u></u></p>
</blockquote>
</div>
</div>
</div>

</blockquote></div></div></div>