Bug#306913: [Logcheck-devel] Bug#306913: logcheck: please allow @ in "hostname" part of logs
Jamie L. Penman-Smithson
jamie at silverdream.org
Wed May 4 16:38:34 UTC 2005
On Wed, 2005-05-04 at 00:12 +0200, maximilian attems wrote:
> On Fri, 29 Apr 2005, Peter Palfrader wrote:
> > Now logcheck doesn't usually allo for the @ in logs which results in
> > bascially no ignore line matching. Please add @ to the regexes, thanks.
<snip log snippets>
>
> ~/src/logcheck/rulefiles/linux$ egrep '\[._\[:alnum:\]-\]' -r . | wc -l
> 896
>
> that's not fun. while changing all those we'd better switch to the use of
> macros. very inclined to merge that with those open bugs.
Speaking of sed magic..
for i in *; do cat $i | sed -e "s/\[\._\[:alnum:\]-\]+/\[\._@\[:alnum:
\]-\]\+/" >> $i.new; done
..appears to work here..
-j
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.alioth.debian.org/pipermail/logcheck-devel/attachments/20050504/97031cfa/attachment.pgp
More information about the Logcheck-devel
mailing list