[Logwatch-Devel] 2 bugs

Mike Tremaine mgt at stellarcore.net
Thu Jul 31 09:53:51 MST 2008

On Jul 31, 2008, at 8:42 AM, Otheus wrote:

> Greetings,
> My firm is using Logwatch 7.3.5, but I saw nothing in the change  
> file to indicate this is fixed in .6....
> Bug#1: Environment variables and configuration settings are forced  
> to lower-case. This kills, for instance, the ability to define/ 
> override a logformat for http in the conf file (yes, you can change  
> the script, but that kills the point of having a conf file).

I think that if you use Quotes around the value it might work. I know  
I've run into this before and I can not remember what I was going to  
do about it. But try quoting your values first and see.

> Bug#2: TimeFilter does not -- but should IMHO -- produce a correct  
> regexp for timestamps that include the %z parameter. This parameter  
> is the relative-timezone-offset in terms of +/- hours and looks  
> like this:
> -0500 (Eastern US)
> +0200 (Middle Europe)
> The regexp currently produced is dependent on one's current  
> timezone, and is simply:
> +0200
> However, there is no guarantee, if one is using geographically- 
> diverse servers, that the timezone will be a constant. Further, the  
> "+" is an error. It works fine in the US and in SouthAmerica, of  
> course, because this number is usually preceded by a "-", which  
> Perl does not treat magically. For the rest of us, it throws off  
> the entire expression. Therefore the + (or -) should be escaped  
> with a backslash. So to sum, the expression should look like:
> [+-]\d{4}

Noted I'll try to fix that next time I dig in.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www2.list.logwatch.org:81/pipermail/logwatch-devel/attachments/20080731/dad1b246/attachment.html 

More information about the Logwatch-Devel mailing list