[thelist] more fun with AWStats and Apache logs [off list]

John DeStefano john.destefano at gmail.com
Thu Jun 12 15:09:25 CDT 2008

Hi Richard,

On Jun 12, 2008, at 3:59 PM, Richard Harb [cFlex] wrote:
> I use apache2 and awstats. all my virtual hosts have entries like  
> this:
> CustomLog /path/to/logs/access.log combined
> no other custom settings needed for awstats on the apache side.
> in awstats I did set
> LogFormat=1
> in the relevant config.

Yup: that's the first configuration I tried, and that broke AWStats  
because of the referer and user agent fields in the logs, which always  
look like:
  my.site.com - - [12/Jun/2008:16:03:44 -0400] "GET /" 200 20019 "-" "-"

I guess AWStats doesn't like empty referer and agent values.  And if I  
change the format from 'combined' to 'common', which omits these  
fields, AWStats reports 'corrupted' records:
  my.site.com - - [12/Jun/2008:16:06:44 -0400] "GET /" 200 20019

More information about the thelist mailing list