[squid-users] logformat for requests using PROXY protocol

chammidhan chammidhan at gmail.com
Fri Nov 15 01:56:45 UTC 2019


I have configured a Squid ECS cluster behind a network load balancer in AWS.
To reflect the original client IP, I needed to enable PROXY Protocol V2 on
the load balancer. The service itself is working fine and I can create rules
based on the original client IP and these are applied as expected. However,
it doesn't seem that logformat format codes are working as expected. No
matter how I format the logs, I'm always seeing the logs in the same format.
Which looks like below.

1573771498.693 240116 10.181.3.10 TCP_TUNNEL/200 1742 CONNECT
id.google.com:443 - HIER_DIRECT/172.217.167.67 -

My logformat directive is the default
logformat squid %{%Y/%m/%d-%H:%M:%S}tl %>A/%>a %un %rm/%rv %ru %mt
%{User-Agent}>h %>st/%<st %tr %>Hs %Ss %Sh/%<A

Appreciate any insight to what I may be doing wrong. Things were working
fine before enabling PROXY protocol on the NLB

Squid version I'm using is 4.4



--
Sent from: http://squid-web-proxy-cache.1019090.n4.nabble.com/Squid-Users-f1019091.html


More information about the squid-users mailing list