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

Arthritis Care website wins top prize

Arthritis Care¹s website recently won a top prize in the British Medical Association Patient Information Awards 2007.

Lets Get Cooking chooses Jamkit

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

skip top banner