#742 LogFile with gzip pipe in awstats.pl cli

6.9
closed
nobody
5
2014-02-07
2009-04-16
No

Hello,

a Debian Bug report has been opened: http://bugs.debian.org/435028

It is impossible to use gzipped log file with the following syntax "gzip -d < logfile.gz":
From data in log file "gzip -d "...
Error: Couldn't open server log file "gzip -d " : No such file or directory
Setup ('/etc/awstats/awstats.xxxxx.conf' file, web server or permissions) may be wrong.

Investigations return that function CleanFromCSSA (and from 6.7 CleanXSS) sanitize character "<" (even in cli mode).

Two suggestions here:
- change the default configfile documentation (comments just on the top of LogFile) to use syntax "gzip -cd logfile.gz" instead of "gzip -d < logfile.gz" (that is not working so). There is already an example on your FAQ (http://awstats.sourceforge.net/docs/awstats_faq.html) that shows us to process a maillog compressed file
- modify your code to not sanitize when invoked by cli

Thanks in advance.

Discussion

  • debian:
    1020_LogFile_usage_docs.patch

     
  • I fixed documentation.

     
    • status: open --> closed