<div dir="ltr"><div>Hi Christian</div><div><br></div>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).<div><br></div><div>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:</div><div><br></div><div><p class="MsoNormal" style="text-indent:35.4pt"><span style="font-family:"Courier New";color:rgb(0,112,192)">LOG C:\Program Files\PATH-TO-LOGFILE\filename.log %<a href="http://Unable.to.cancel.connection.to">Unable.to.cancel.connection.to</a> COLOR=RED<u></u><u></u></span></p><br class="gmail-Apple-interchange-newline"></div><div>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:</div><div><br></div><div><p class="MsoNormal" style="text-indent:35.4pt"><span style="font-family:"Courier New";color:rgb(0,112,192)">LOG C:\Program Files\PATH-TO-LOGFILE\filename.log "Unable to cancel connection to" COLOR=RED<u></u><u></u></span></p></div><div><br></div><div>Cheers</div><div>Jeremy</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 12 Aug 2020 at 20:46, 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:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">





<div lang="DE">
<div class="gmail-m_-8751366057112239936WordSection1">
<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:rgb(0,112,192)">[win10client1]<u></u><u></u></span></p>
<p class="MsoNormal" style="text-indent:35.4pt"><span style="font-family:"Courier New";color:rgb(0,112,192)">log:C:\Program Files\PATH-TO-LOGFILE\filename.log:153600<u></u><u></u></span></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:rgb(0,112,192)">HOST=win10client1<u></u><u></u></span></p>
<p class="MsoNormal" style="text-indent:35.4pt"><span style="font-family:"Courier New";color:rgb(0,112,192)">LOG C:\Program Files\PATH-TO-LOGFILE\filename.log <a href="http://Unable.to.cancel.connection.to" target="_blank">Unable.to.cancel.connection.to</a> COLOR=RED<u></u><u></u></span></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:rgb(0,112,192)"><a href="http://Unable.to.cancel.connection.to" target="_blank">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>

_______________________________________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com" target="_blank">Xymon@xymon.com</a><br>
<a href="http://lists.xymon.com/mailman/listinfo/xymon" rel="noreferrer" target="_blank">http://lists.xymon.com/mailman/listinfo/xymon</a><br>
</blockquote></div>