Reply to Warning
Wytze van der Raay
wytze at nlnet.nl
Wed Apr 6 12:43:59 CEST 2005
Alessandro Galluzzo wrote:
> Hi, thank you for your lovableness and now i tell you my situation:
>
> SO: Red Hat 9
> Lire:2.0.1 that we use to report log from squid proxy
OK, I am running with that same environment.
> ...it report to stderr this messages
>
> *bogus message: Log file was compressed using gzip.*
>
> *bogus message: Decompressing log file using /bin/gzip... *
The "bogus message" prefix is fabricated by lr_run. As of Lire 2.0,
you should not use lr_run anymore in combination with lr_log2report.
As noted in the Lire 2.0 NEWS file:
- Changes to lr_log2report, lr_log2mail, lr_xml2mail and lr_xml2report
<snip>
* The commands now output legible messages on STDERR (they do not use
the old lire logging format). As a consequence, they shouldn't be run
under lr_run.
> *bogus message: lr_log2report: WARNING Wide character in print at
> /usr/local/share/perl5/Lire/LrCommand.pm line 470.*
This message is not produced by Lire itself, but by Perl's unicode character
handling code. I presume that Lire's unicode handling may have a bug here
(but I am completely unqualified to talk about that ...). Anyway, as there
are only a few of these warnings, this does not seem a big problem for the
report.
> ...
> *bogus message: Parsing log file using squid_access DLF Converter...*
>
> *bogus message: Extracted 187945 DLF records on 187945 lines.*
>
> *bogus message: Encountered 0 errors and ignored 0 lines.*
This looks good to me.
> *bogus message: Running analysers... *
>
> *bogus message: Generating XML report... *
>
> *bogus message: lr_log2report: WARNING Argument "6,094" isn't numeric in
> numeric lt (<) at /usr/local/share/perl5/Lire/SQLExt/LrRangegroup.pm
> line 27.*
This is most likely caused by a locale problem. I've never seen these
warnings until now, but I am always running with LANG=en_US.
When I set LANG=it_IT and run the same command again, I am getting exactly
the same type of error messages as you are reporting. Looking at the
resulting report, I notice that all floating point numbers are shown
with a decimal comma (as probably customary in the Italian locale) instead
of with a decimal dot (as customary in the English/US locale).
It looks to me that the Lire code needs some improvement of its
internationalization support here (but again, I am not an expert on
this matter).
> From this script:....
>
> *lr_run lr_log2report -c /home/lire/lire-2.0.1/proxy/proxy.cfg
> squid_access </var/log/squid/access.log.1.gz > lire.log *
For now you can get rid of most warnings by running it like:
LANG=en_US lr_log2report -c /home/lire/lire-2.0.1/proxy/proxy.cfg \
squid_access </var/log/squid/access.log.1.gz > lire.log
Hopefully, some Lire/Perl internationalization expert can take a look
at a real solution for this problem.
Kind regards,
Wytze van der Raay
--
To UNSUBSCRIBE, email to questions-request at logreport.org with a subject of
"unsubscribe". Trouble? Send an email with subject "help" to
questions-request at logreport.org
More information about the Questions
mailing list