[afnog] Awstats and Squid logs

SM sm at resistor.net
Mon Jun 8 15:30:00 UTC 2009


At 07:54 08-06-2009, Evelyn Namara wrote:
>CI need some awstats users to help me out here. I have set up and 
>used Awstats for for analyzing mostly http
>web traffic and it works perfectly.
>
>I wanted to have a similar setting for squid [ to have awstats 
>analyze my proxy logs] since it says it has support for this too, 
>but I have problems with my logformat.
>
>Here is my setup so far:
>
>In my awstats.conf file I have the following set:
>
>logformat=4 [ which should work for squid, according to the documentation]
>
>Then in my squid.conf;
>I added this combined log format;
>
>logformat combined %>a %ui %un [%{%d/%b/%Y:%H:%M:%S +0000}tl] "%rm 
>%ru HTTP/%rv" %Hs %<st "%{Referer}>h" "%{User-Agent}>h" %Ss:%Sh

You forgot to add:

access_log /var/log/squid/access.log combined

Regards,
-sm 




More information about the afnog mailing list