<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META content="Novell GroupWise WebAccess" name=Author>
<META content="MSHTML 6.00.3790.5080" name=GENERATOR></HEAD>
<BODY style="MARGIN: 4px 4px 1px; FONT: 10pt Tahoma; BACKGROUND-COLOR: #ffffff"><FONT face="Tahoma, sans-serif">Hi David,</FONT>
<DIV style="FONT-SIZE: 13px; FONT-FAMILY: Tahoma, sans-serif"><BR></DIV>
<DIV style="FONT-SIZE: 13px; FONT-FAMILY: Tahoma, sans-serif">Thanks, it does work on ignore statements with regular expressions but not with simple strings:</DIV>
<DIV style="FONT-SIZE: 13px; FONT-FAMILY: Tahoma, sans-serif"><BR></DIV>
<DIV><FONT face="Tahoma, sans-serif">LOG eventlog_application %^warning COLOR=yellow "IGNORE=No externals have been specified"</FONT></DIV>
<DIV><SPAN style="FONT-FAMILY: Tahoma, sans-serif">LOG eventlog_application %^warning COLOR=yellow IGNORE="No externals have been specified"</SPAN></DIV>
<DIV><FONT face="Tahoma, sans-serif"><BR></FONT></DIV>
<DIV><FONT face="Tahoma, sans-serif">If I escape the spaces or if I add the %, it works. </FONT><SPAN style="FONT-FAMILY: Tahoma, sans-serif">But still, this is not logical - quotes are normally after the equal sign and of course it shouldn't be necessary to make this into a regex when it isn't. </SPAN></DIV>
<DIV><FONT face="Tahoma, sans-serif"><BR></FONT></DIV>
<DIV><FONT face="Tahoma, sans-serif">thanks for the tip.</FONT></DIV>
<DIV><FONT face="Tahoma, sans-serif"><BR></FONT></DIV>
<DIV><FONT face="Tahoma, sans-serif">cheers, Phil</FONT></DIV>
<DIV><FONT face="Tahoma, sans-serif"><BR></FONT>
<DIV style="FONT-SIZE: 13px; FONT-FAMILY: Tahoma, sans-serif"><BR><BR>>>> David Baldwin <david.baldwin@ausport.gov.au> 03/04/13 4:43 PM >>><BR>
<DIV class=moz-cite-prefix>Phil,<BR><BR>You need to put "" around entire IGNORE item - e.g.:<BR><BR>... "IGNORE=%Client \([0-9]7"<BR><BR>This applies for any use of regex in analysis.cfg which uses spaces.<BR><BR>David.<BR></DIV>
<BLOCKQUOTE cite=mid:5134DD74020000C0000CC92B@vho64pn04.orix.com.au type="cite">
<DIV>I'm having a problem with spaces in regular expressions when trying to IGNORE log entries. So for the line:</DIV><BR>
<DIV>
<DIV><PRE>warning - 2013/03/04 12:52:21 - BigBrotherXymonClient (17) - The agent externals generated this event message : No externals have been specified</PRE><BR></DIV><BR></DIV><BR>
<DIV><BR>
<DIV><FONT face="Tahoma, sans-serif">  works:           LOG </FONT>eventlog_application %^warning<BR>  COLOR=red IGNORE=%Client.*17</DIV><BR>
<DIV><FONT face="Tahoma, sans-serif">  works:           LOG </FONT>eventlog_application %^warning<BR>  COLOR=red IGNORE=%Client.*[0-9]7</DIV><BR>
<DIV><FONT face="Tahoma, sans-serif">  works:           LOG </FONT>eventlog_application %^warning<BR>  COLOR=red IGNORE=Client\ \(17</DIV><BR>
<DIV><FONT face="Tahoma, sans-serif">  works:           LOG </FONT>eventlog_application %^warning<BR>  COLOR=red IGNORE=No\ externals\ have\ been\ specified<FONT face="Tahoma, sans-serif">  </FONT></DIV><BR>
<DIV><FONT face="Tahoma, sans-serif"><BR><BR></FONT></DIV><BR>
<DIV><FONT face="Tahoma, sans-serif">  doesn't work:   LOG </FONT>eventlog_application %^warning<BR>  COLOR=red IGNORE=%"Client \([0-9]7"</DIV><BR>
<DIV><FONT face="Tahoma, sans-serif">  doesn't work:   LOG </FONT>eventlog_application %^warning<BR>  COLOR=red IGNORE="Client \(17"</DIV><BR>
<DIV><FONT face="Tahoma, sans-serif">  doesn't work:   LOG </FONT>eventlog_application %^warning<BR>  COLOR=red IGNORE="Client (17"</DIV><BR>
<DIV><FONT face="Tahoma, sans-serif">  doesn't work:   LOG </FONT>eventlog_application %^warning<BR>  COLOR=red IGNORE="No externals have been specified"</DIV><BR>
<DIV><FONT face="Tahoma, sans-serif">  </FONT></DIV><BR></DIV><BR>
<DIV>Is this correct? If so, why no spaces??? It is very confusing<BR>as spaces are used elsewhere, eg I can have spaces in a DISK<BR>name in analysis.cfg: DISK "/yada yada" 90 95, and spaces can be<BR>used in various places in hosts.cfg.</DIV><BR><BR><BR>thanks, Phil<BR><BR><BR>
<FIELDSET class=mimeAttachmentHeader></FIELDSET><BR><BR><BR><PRE wrap="">_______________________________________________<BR>Xymon mailing list<BR><A class=moz-txt-link-abbreviated href="mailto:Xymon@xymon.com">Xymon@xymon.com</A><BR><A class=moz-txt-link-freetext href="http://lists.xymon.com/mailman/listinfo/xymon">http://lists.xymon.com/mailman/listinfo/xymon</A><BR></PRE><BR></BLOCKQUOTE><BR><BR><BR><BR><BR><PRE class=moz-signature cols="72">-- <BR>David Baldwin - Senior Systems Administrator (Datacentres + Networks)<BR>Information and Communication Technology Services<BR>Australian Sports Commission          <A class=moz-txt-link-freetext href="http://ausport.gov.au">http://ausport.gov.au</A><BR>Tel 02 62147830 Fax 02 62141830       PO Box 176 Belconnen ACT 2616<BR><A class=moz-txt-link-abbreviated href="mailto:david.baldwin@ausport.gov.au">david.baldwin@ausport.gov.au</A>          Leverrier Street Bruce ACT 2617<BR></PRE><BR>
<HR>
Keep up to date with what's happening in Australian sport visit <A href="http://www.ausport.gov.au">www.ausport.gov.au</A> <BR><BR><FONT face=arial size=-2>This message is intended for the addressee named and may contain confidential and privileged information. If you are not the intended recipient please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you receive this message in error, please delete it and notify the sender.</FONT> 
<HR>
</DIV></DIV></BODY></HTML>