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

Eduardo Kienetz eduardok at gmail.com
Thu Jun 12 20:10:18 CDT 2008

On Thu, Jun 12, 2008 at 4:09 PM, John DeStefano
<john.destefano at gmail.com> wrote:
> 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

Check for extra LogFormat's later on in your file which might be
overriding the default one (which I sent), which is the right one to
Also, make sure there are no extra CustomLog turning back to common
instead of Combined.

Take a look at:

Eduardo Bacchi Kienetz

More information about the thelist mailing list