Bug#306913: [Logcheck-devel] Bug#306913: logcheck: please allow @ in "hostname" part of logs

maximilian attems debian at sternwelten.at
Wed May 4 17:44:51 UTC 2005


On Wed, 04 May 2005, Jamie L. Penman-Smithson wrote:

> 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

yes i know, could have done something similar with perl,
but we just want to change all hostname and who says they
are exactly formated like aboves and really hostnames you
change. needs human edit and than it's better to do it
right, no?

regards


--
maks






More information about the Logcheck-devel mailing list