Search squid archive

logformat for requests using PROXY protocol

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users




[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux