squid logformat is ignored

Solution Unverified - Updated -

Issue

  • We set logformat but it's ignored.

    #/etc/squid/squid.conf
    ...snip...
    logformat squid %{%Y/%m/%d:%H:%M:%S %z}tl %6tr %>a %Ss/%03>Hs %<st %rm %ru %un %Sh/%<a %mt %>p
    access_log daemon:/var/log/squid/access.log squid
    ...snip...
    
    # tail /var/log/squid/access.log
    1718930548.734     21 ::1 TCP_MISS/200 468 GET http://localhost/ - HIER_DIRECT/::1 text/html
    

Environment

  • Red Hat Enterprise Linux 8 and later
  • squid 4 and later

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content