From: Joshua N Pritikin <jpritikin@pobox.com>
Subject: svlogd pattern documentation
Date: Fri, 9 Dec 2005 14:48:30 +0530 [thread overview]
Message-ID: <20051209091830.GM10371@always.joy.eth.net> (raw)
[-- Attachment #1: Type: text/plain, Size: 1566 bytes --]
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*
--
Make April 15 just another day, visit http://fairtax.org
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next reply other threads:[~2005-12-09 9:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-09 9:18 Joshua N Pritikin [this message]
2005-12-09 14:37 ` Gerrit Pape
2005-12-09 17:44 ` Joshua N Pritikin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20051209091830.GM10371@always.joy.eth.net \
--to=jpritikin@pobox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).