[squid-users] logformat for squid5 ?

Alex Rousskov rousskov at measurement-factory.com
Thu Aug 1 16:01:27 UTC 2019

On 8/1/19 11:40 AM, --Ahmad-- wrote:

> logformat squid %tl %6tr %>a %>p %>la %>lp %Ss/%03Hs %<st %rm %ru %un
> %Sh/ %<A %<a %<la

I suspect your Squid v5 is not using your custom logformat. Squid is
using the default logformat. IIRC, Squid v5 warns if you are trying to
redefine the default logformat called "squid" (which is not supported)
instead of adding and using your own. Check Squid output and cache.log
for WARNING and ERROR messages.

Redefining the default logformat may have "worked" in v3, but you should
not do that (in any Squid version). Instead, define and use your own
logformat. For example:

  logformat myAccessLogFormat %tl %6tr ...
  access_log ... logformat=myAccessLogFormat



More information about the squid-users mailing list