supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
From: Gerrit Pape <pape@smarden.org>
Subject: Re: svlogd pattern documentation
Date: Fri, 9 Dec 2005 15:37:13 +0100	[thread overview]
Message-ID: <20051209143713.17200.qmail@20b2cf8d38a761.315fe32.mid.smarden.org> (raw)
In-Reply-To: <20051209091830.GM10371@always.joy.eth.net>

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.


  reply	other threads:[~2005-12-09 14:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-09  9:18 Joshua N Pritikin
2005-12-09 14:37 ` Gerrit Pape [this message]
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=20051209143713.17200.qmail@20b2cf8d38a761.315fe32.mid.smarden.org \
    --to=pape@smarden.org \
    /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).