Skip navigation

Top-level navigation

Home Clients Non Profits Webfactory Support About us Services

Apache-style squid logs

Many people in the Zope community use the squid caching server as an http accelerator for their Zope sites.

By default, squid logs in a format useful for analysing cache hits, but not in a format useful for analysing web traffic. To get squid logging in the standard combined log format used by apache and understood by analysis packages like webalizer and awstats, you need to do the following. (Note: when squid 3 becomes stable, you will no longer need to patch the code. I understand that squid 3 is informally considered stable when run as an accelerator).

  1. Get the customlog patch and patch the squid code:
      $ patch -p1 < path-to-customlog-2.5.path
    
  2. Compile and install squid as normal
  3. Add the following lines to your squid.conf (full config details are here):
      logformat combined %>a %ui %un [%tl] "%rm %ru HTTP/%rv" %Hs %<st "%{Referer}>h" "%{User-Agent}>h" %Ss:%Sh
      access_log /var/log/httpd/access_log combined
    

Secondary navigation

Lets Get Cooking chooses Jamkit

Jamkit is proud to announce that we have been appointed to develop a website for Let’s Get Cooking

CLIC Sargent to provide a new, interactive information portal on children’s cancer.

CLIC Sargent, the UK’s leading children’s cancer charity has teamed up with Jamkit, the web development specialist for charities, to redevelop its website.

skip top banner