配置:
squid: /etc/squid/squid.conf
代码: 全选
logformat combined %>a %ui %un [%tl] "%rm %ru HTTP/%rv" %Hs %<st "%{Referer}>h" "%{User-Agent}>h" %Ss:%Sh %{host}>h
access_log /var/log/squid/access.log combined
代码: 全选
LogFormat = "%host %other %logname %time1 %methodurl %code %bytesd %refererquot %uaquot %other %virtualname"
LogFile="/var/log/squid/access.log"
squid 的日志需要加上虚拟主机名: %{host}>h
awstats的读取参数指出 %virtualname