From: Vladimir Smelhaus <smelhaus@bpt.cz>
Subject: Re: svlogd config Epattern
Date: Mon, 18 Oct 2004 22:22:11 +0200 [thread overview]
Message-ID: <cl18ko$bgc$1@sea.gmane.org> (raw)
In-Reply-To: <20041018164556.20003.qmail@4a4c34b6e1bc9c.315fe32.mid.smarden.org>
Gerrit Pape wrote:
>>e*.err: *
>>E*.err: First text
>>E*.err: Second text
>>
>>possible? I think that eE should work similarly as +- for logging.
>
> I agree that it should work just like +-, each line deselected
> initially. But currently eE lines are interpreted separately; if a
> pattern matches, the line is printed to stderr immediately, see
> svlogd(8). Unfortunately this should not change in version 1.0.x.
It is possible to fix it up by something like this:
cat /etc/socklog/notify/run
#!/bin/sh -e
PIPE=/var/log/socklog/.notify
if [ ! -p "$PIPE" ]; then mkfifo -m0620 "$PIPE"; chown log:adm "$PIPE"; fi
exec <> "$PIPE"
exec setuidgid log uncat -s49999 -t90 \
sh -c 'grep -vf /etc/socklog/notify/unwanted-patterns | mail -e -s
socklog-notify root'
Regards, Vlada
prev parent reply other threads:[~2004-10-18 20:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-16 21:59 Vladimir Smelhaus
2004-10-18 16:46 ` Gerrit Pape
2004-10-18 20:22 ` Vladimir Smelhaus [this message]
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='cl18ko$bgc$1@sea.gmane.org' \
--to=smelhaus@bpt.cz \
/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).