From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/942 Path: news.gmane.org!not-for-mail From: Gerrit Pape Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: svlogd pattern documentation Date: Fri, 9 Dec 2005 15:37:13 +0100 Message-ID: <20051209143713.17200.qmail@20b2cf8d38a761.315fe32.mid.smarden.org> References: <20051209091830.GM10371@always.joy.eth.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1134139264 24394 80.91.229.2 (9 Dec 2005 14:41:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 9 Dec 2005 14:41:04 +0000 (UTC) Original-X-From: supervision-return-1178-gcsg-supervision=m.gmane.org@list.skarnet.org Fri Dec 09 15:41:02 2005 Return-path: Original-Received: from antah.skarnet.org ([212.85.147.14]) by ciao.gmane.org with smtp (Exim 4.43) id 1EkjMi-0000OC-5d for gcsg-supervision@gmane.org; Fri, 09 Dec 2005 15:36:53 +0100 Original-Received: (qmail 31260 invoked by uid 76); 9 Dec 2005 14:37:13 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Archive: Original-Received: (qmail 31255 invoked from network); 9 Dec 2005 14:37:13 -0000 Original-To: supervision@list.skarnet.org Mail-Followup-To: supervision@list.skarnet.org Content-Disposition: inline In-Reply-To: <20051209091830.GM10371@always.joy.eth.net> Xref: news.gmane.org gmane.comp.sysutils.supervision.general:942 Archived-At: On Fri, Dec 09, 2005 at 02:48:30PM +0530, Joshua N Pritikin wrote: > A character not a star (``*'') and not a plus (``+'') matches itself. > > OK > > A plus matches the next character in pattern in the log message > one or more times. > > Huh? Isn't the reverse of how it usually works? > > Pattern +abc matches aaabc? In other tools, the pattern is written > 'a+bc'. Clarify please. You're right. > A star before the end of pattern > matches any string in the log message that does not > include the next character in pattern. A star at the end > of pattern matches any string. > > What about a star at the beginning of the pattern? No effect? Sure an effect: it matches any string in the log message that does not include the next character in pattern. > Some examples would really help. How do I deselect all lines containing > "File does not exist" such as: > > 2005-12-09_06:24:23.99609 [Fri Dec 09 06:24:23 2005] [error] [client > 84.73.105.43] File does not exist: /home/ohl/ohl-v2/htdocs/xmlrpc.php > > Like this? > > -*File does not exist* No, this doesn't match. It stops after '[Fr'. This, for example, does: -[*] [*] [*] File does not exist: * Regards, Gerrit.