* svlogd config Epattern
@ 2004-10-16 21:59 Vladimir Smelhaus
2004-10-18 16:46 ` Gerrit Pape
0 siblings, 1 reply; 3+ messages in thread
From: Vladimir Smelhaus @ 2004-10-16 21:59 UTC (permalink / raw)
Hi,
I am trying to configure notifications from svlogd but I am not able
how to persuade it to mail me only messages that I want.
When I want to have e-mailed all, say error, messages it is easy. But
when I want all error messages except one or two it does not work as I
expect.
e*.err: *
E*.err: First text
E*.err: Second text
Please, can someone tell me what is the proper notation? Or is this
possible? I think that eE should work similarly as +- for logging.
Regards, Vlada
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: svlogd config Epattern
2004-10-16 21:59 svlogd config Epattern Vladimir Smelhaus
@ 2004-10-18 16:46 ` Gerrit Pape
2004-10-18 20:22 ` Vladimir Smelhaus
0 siblings, 1 reply; 3+ messages in thread
From: Gerrit Pape @ 2004-10-18 16:46 UTC (permalink / raw)
On Sat, Oct 16, 2004 at 11:59:25PM +0200, Vladimir Smelhaus wrote:
> I am trying to configure notifications from svlogd but I am not able
> how to persuade it to mail me only messages that I want.
>
> When I want to have e-mailed all, say error, messages it is easy. But
> when I want all error messages except one or two it does not work as I
> expect.
>
> e*.err: *
> E*.err: First text
> E*.err: Second text
>
> Please, can someone tell me what is the proper notation? Or is this
> 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.
Thanks, Gerrit.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: svlogd config Epattern
2004-10-18 16:46 ` Gerrit Pape
@ 2004-10-18 20:22 ` Vladimir Smelhaus
0 siblings, 0 replies; 3+ messages in thread
From: Vladimir Smelhaus @ 2004-10-18 20:22 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-10-18 20:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-16 21:59 svlogd config Epattern Vladimir Smelhaus
2004-10-18 16:46 ` Gerrit Pape
2004-10-18 20:22 ` Vladimir Smelhaus
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).