Re: 2 bugs

Mike Tremaine <[email protected]>
Newsgroups gmane.comp.log.logwatch.devel
Message-ID <[email protected]>
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.

-Mike

_______________________________________________
Logwatch-Devel mailing list
[email protected]
http://www2.list.logwatch.org:81/mailman/listinfo/logwatch-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.