2 bugs

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

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}


-- 
Otheus
[email protected]
+43.699.1049.7813

_______________________________________________
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.