From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/940 Path: news.gmane.org!not-for-mail From: Joshua N Pritikin Newsgroups: gmane.comp.sysutils.supervision.general Subject: svlogd pattern documentation Date: Fri, 9 Dec 2005 14:48:30 +0530 Message-ID: <20051209091830.GM10371@always.joy.eth.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="S66JdqtemGhvbcZP" X-Trace: sea.gmane.org 1134119749 30657 80.91.229.2 (9 Dec 2005 09:15:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 9 Dec 2005 09:15:49 +0000 (UTC) Original-X-From: supervision-return-1176-gcsg-supervision=m.gmane.org@list.skarnet.org Fri Dec 09 10:15:46 2005 Return-path: Original-Received: from antah.skarnet.org ([212.85.147.14]) by ciao.gmane.org with smtp (Exim 4.43) id 1EkeK2-00060K-8A for gcsg-supervision@gmane.org; Fri, 09 Dec 2005 10:13:46 +0100 Original-Received: (qmail 27592 invoked by uid 76); 9 Dec 2005 09:14:06 -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 27586 invoked from network); 9 Dec 2005 09:14:06 -0000 Original-To: supervision@list.skarnet.org Content-Disposition: inline X-PGP-Key: 06E3 3D22 D307 AAE6 ACB4 6B44 A9CA A794 A4A6 0BBD X-Request-PGP: http://openheartlogic.org/personal/pubkey.asc User-Agent: Mutt/1.5.4i Xref: news.gmane.org gmane.comp.sysutils.supervision.general:940 Archived-At: --S66JdqtemGhvbcZP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I've read the PATTERN MATCHING section of the svlogd man pages a few times and I'm still confused. Since I am well versed in perl regex and extended regex, I'm pretty sure that I'm confused because the documentation is poorly written, not because I'm dumb. So let's take a look: pattern is applied to the log message one character by one, starting with the first. Uhm, I think this first sentence can just be removed. If the reader doesn't know what a pattern is then refer them to the sed info page. Perhaps: "An svlogd pattern is similar to a grep or sed regexp, except much simpler." 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. 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? 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* --=20 Make April 15 just another day, visit http://fairtax.org --S66JdqtemGhvbcZP Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFDmUvlqcqnlKSmC70RAiviAJ9baK7eug5FQ5momzYtrUuTDsAm9gCgia0u S/DkFLwhRVP5FjWfONZ6aQQ= =ZDrP -----END PGP SIGNATURE----- --S66JdqtemGhvbcZP--