[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] syntax for log monitoring with spaces?
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] syntax for log monitoring with spaces?
- From: Henrik "Størner" <henrik (at) hswn.dk>
- Date: Fri, 19 Dec 2008 15:47:42 +0000 (UTC)
- Newsgroups: lists.hobbit
- Organization: Linux Users Inc.
- References: <81E66680B19401468995DC13C758F8661E46F4DFC4 (at) EXCMAIL01.gpipoc.com>
- User-agent: nn/6.7.3
In <81E66680B19401468995DC13C758F8661E46F4DFC4 (at) EXCMAIL01.gpipoc.com> Craig Cook <Craig.Cook (at) gpi.com> writes:
> LOG /var/adm/messages %error|panic|ERROR|half-duplex|failing|transport failed|responding|core|NOTICE|offlin COLOR=red IGNORE=%upload|External request already in progress|pam_dial_auth
Whitespace in the patterns is likely to trip up the parser. Wrap the
pattern in quotes, or use [[:space:]] instead of space. (Or just '.',
which matches anything).
E.g.
LOG /var/adm/messages \
"%error|panic|ERROR|half-duplex|failing|transport failed|responding|core|NOTICE|offlin" \
"IGNORE=%upload|External request already in progress|pam_dial_auth" \
COLOR=red
Regards,
Henrik