<div dir="ltr"><div>I have my logformat as follows.</div><div><span style="color:rgb(22,25,31);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">logformat jsonformat {</span><span style="color:rgb(29,129,2);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">"</span><span style="color:rgb(29,129,2);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">Client Hostname</span><span style="color:rgb(29,129,2);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">"</span><span style="color:rgb(22,25,31);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">:</span><span style="color:rgb(29,129,2);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">"</span><span style="color:rgb(29,129,2);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">%>A</span><span style="color:rgb(29,129,2);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">"</span><span style="color:rgb(22,25,31);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">,</span><span style="color:rgb(29,129,2);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">"</span><span style="color:rgb(29,129,2);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">Source IP</span><span style="color:rgb(29,129,2);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">"</span><span style="color:rgb(22,25,31);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">:</span><span style="color:rgb(29,129,2);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">"</span><span style="color:rgb(29,129,2);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">%>a</span><span style="color:rgb(29,129,2);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">"</span><span style="color:rgb(22,25,31);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">,</span><span style="color:rgb(29,129,2);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">"</span><span style="color:rgb(29,129,2);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">HTTP Method</span><span style="color:rgb(29,129,2);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">"</span><span style="color:rgb(22,25,31);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">:</span><span style="color:rgb(29,129,2);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">"</span><span style="color:rgb(29,129,2);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">%rm</span><span style="color:rgb(29,129,2);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">"</span><span style="color:rgb(22,25,31);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">,</span><span style="color:rgb(29,129,2);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">"</span><span style="color:rgb(29,129,2);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">HTTP Protocol version</span><span style="color:rgb(29,129,2);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">"</span><span style="color:rgb(22,25,31);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">:</span><span style="color:rgb(29,129,2);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">"</span><span style="color:rgb(29,129,2);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">%rv</span><span style="color:rgb(29,129,2);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">"</span><span style="color:rgb(22,25,31);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">,</span><span style="color:rgb(29,129,2);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">"</span><span style="color:rgb(29,129,2);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">Request Domain</span><span style="color:rgb(29,129,2);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">"</span><span style="color:rgb(22,25,31);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">:</span><span style="color:rgb(29,129,2);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">"</span><span style="color:rgb(29,129,2);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">%>rd</span><span style="color:rgb(29,129,2);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">"</span><span style="color:rgb(22,25,31);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">,</span><span style="color:rgb(29,129,2);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">"</span><span style="color:rgb(29,129,2);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">Port</span><span style="color:rgb(29,129,2);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">"</span><span style="color:rgb(22,25,31);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">:</span><span style="color:rgb(29,129,2);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">"</span><span style="color:rgb(29,129,2);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">%>rP</span><span style="color:rgb(29,129,2);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">"</span><span style="color:rgb(22,25,31);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">,</span><span style="color:rgb(29,129,2);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">"</span><span style="color:rgb(29,129,2);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">User Agent</span><span style="color:rgb(29,129,2);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">"</span><span style="color:rgb(22,25,31);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">:</span><span style="color:rgb(29,129,2);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">"</span><span style="color:rgb(29,129,2);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">%{User-Agent}>h</span><span style="color:rgb(29,129,2);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">"</span><span style="color:rgb(22,25,31);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">,</span><span style="color:rgb(29,129,2);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">"</span><span style="color:rgb(29,129,2);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">Request Size</span><span style="color:rgb(29,129,2);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">"</span><span style="color:rgb(22,25,31);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">:</span><span style="color:rgb(29,129,2);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">"</span><span style="color:rgb(29,129,2);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">%>st</span><span style="color:rgb(29,129,2);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">"</span><span style="color:rgb(22,25,31);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">,</span><span style="color:rgb(29,129,2);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">"</span><span style="color:rgb(29,129,2);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">Reply Size</span><span style="color:rgb(29,129,2);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">"</span><span style="color:rgb(22,25,31);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">:</span><span style="color:rgb(29,129,2);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">"</span><span style="color:rgb(29,129,2);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">%<st</span><span style="color:rgb(29,129,2);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">"</span><span style="color:rgb(22,25,31);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">,</span><span style="color:rgb(29,129,2);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">"</span><span style="color:rgb(29,129,2);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">Response Time(ms)</span><span style="color:rgb(29,129,2);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">"</span><span style="color:rgb(22,25,31);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">:</span><span style="color:rgb(29,129,2);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">"</span><span style="color:rgb(29,129,2);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">%tr</span><span style="color:rgb(29,129,2);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">"</span><span style="color:rgb(22,25,31);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">,</span><span style="color:rgb(29,129,2);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">"</span><span style="color:rgb(29,129,2);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">Status Code</span><span style="color:rgb(29,129,2);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">"</span><span style="color:rgb(22,25,31);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">:</span><span style="color:rgb(29,129,2);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">"</span><span style="color:rgb(29,129,2);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">%>Hs</span><span style="color:rgb(29,129,2);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">"</span><span style="color:rgb(22,25,31);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">,</span><span style="color:rgb(29,129,2);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">"</span><span style="color:rgb(29,129,2);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">Request Status</span><span style="color:rgb(29,129,2);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">"</span><span style="color:rgb(22,25,31);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">:</span><span style="color:rgb(29,129,2);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">"</span><span style="color:rgb(29,129,2);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">%Ss</span><span style="color:rgb(29,129,2);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">"</span><span style="color:rgb(22,25,31);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">,</span><span style="color:rgb(29,129,2);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">"</span><span style="color:rgb(29,129,2);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">Server FQDN</span><span style="color:rgb(29,129,2);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">"</span><span style="color:rgb(22,25,31);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">:</span><span style="color:rgb(29,129,2);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">"</span><span style="color:rgb(29,129,2);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">%<A</span><span style="color:rgb(29,129,2);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">"</span><span style="color:rgb(22,25,31);font-family:Monaco,Menlo,Consolas,"Courier Prime",Courier,"Courier New",monospace;font-size:13px;white-space:pre-wrap">}</span> </div><div><br></div><div>The proxy is sitting behind a load balancer in AWS and Proxy Protocol V2 is enabled on both the LB and Squid. Everything seems to work fine. I can create rules based on source IP of the client. However. I want to be able to create rules based on the hostname of the original client. But it doesn't seem that Squid sees the original client's hostname. Rather it takes the hostname of the LB as seen by below log.<br></div><div><br></div><div><span style="color:rgb(68,68,68);font-family:monaco,menlo,consolas,"courier prime",courier,"courier new",monospace;font-size:12px;white-space:pre-wrap">{
</span><span style="color:rgb(68,68,68);font-family:monaco,menlo,consolas,"courier prime",courier,"courier new",monospace;font-size:12px;white-space:pre-wrap">"Client Hostname":</span><span style="color:rgb(68,68,68);font-family:monaco,menlo,consolas,"courier prime",courier,"courier new",monospace;font-size:12px;white-space:pre-wrap"> </span><span style="color:rgb(0,153,51);font-family:monaco,menlo,consolas,"courier prime",courier,"courier new",monospace;font-size:12px;white-space:pre-wrap">"ip-10-181-3-213.ap-southeast-2.compute.internal"</span><span style="color:rgb(68,68,68);font-family:monaco,menlo,consolas,"courier prime",courier,"courier new",monospace;font-size:12px;white-space:pre-wrap">,
</span><span style="color:rgb(68,68,68);font-family:monaco,menlo,consolas,"courier prime",courier,"courier new",monospace;font-size:12px;white-space:pre-wrap">"Source IP":</span><span style="color:rgb(68,68,68);font-family:monaco,menlo,consolas,"courier prime",courier,"courier new",monospace;font-size:12px;white-space:pre-wrap"> </span><span style="color:rgb(0,153,51);font-family:monaco,menlo,consolas,"courier prime",courier,"courier new",monospace;font-size:12px;white-space:pre-wrap">"10.181.3.10"</span><span style="color:rgb(68,68,68);font-family:monaco,menlo,consolas,"courier prime",courier,"courier new",monospace;font-size:12px;white-space:pre-wrap">,
</span><span style="color:rgb(68,68,68);font-family:monaco,menlo,consolas,"courier prime",courier,"courier new",monospace;font-size:12px;white-space:pre-wrap">"HTTP Method":</span><span style="color:rgb(68,68,68);font-family:monaco,menlo,consolas,"courier prime",courier,"courier new",monospace;font-size:12px;white-space:pre-wrap"> </span><span style="color:rgb(0,153,51);font-family:monaco,menlo,consolas,"courier prime",courier,"courier new",monospace;font-size:12px;white-space:pre-wrap">"CONNECT"</span><span style="color:rgb(68,68,68);font-family:monaco,menlo,consolas,"courier prime",courier,"courier new",monospace;font-size:12px;white-space:pre-wrap">,
</span><span style="color:rgb(68,68,68);font-family:monaco,menlo,consolas,"courier prime",courier,"courier new",monospace;font-size:12px;white-space:pre-wrap">"HTTP Protocol version":</span><span style="color:rgb(68,68,68);font-family:monaco,menlo,consolas,"courier prime",courier,"courier new",monospace;font-size:12px;white-space:pre-wrap"> </span><span style="color:rgb(0,153,51);font-family:monaco,menlo,consolas,"courier prime",courier,"courier new",monospace;font-size:12px;white-space:pre-wrap">"1.1"</span><span style="color:rgb(68,68,68);font-family:monaco,menlo,consolas,"courier prime",courier,"courier new",monospace;font-size:12px;white-space:pre-wrap">,
</span><span style="color:rgb(68,68,68);font-family:monaco,menlo,consolas,"courier prime",courier,"courier new",monospace;font-size:12px;white-space:pre-wrap">"Request Domain":</span><span style="color:rgb(68,68,68);font-family:monaco,menlo,consolas,"courier prime",courier,"courier new",monospace;font-size:12px;white-space:pre-wrap"> </span><span style="color:rgb(0,153,51);font-family:monaco,menlo,consolas,"courier prime",courier,"courier new",monospace;font-size:12px;white-space:pre-wrap">"<a href="http://clientservices.googleapis.com/" target="_blank">clientservices.googleapis.com</a>"</span><span style="color:rgb(68,68,68);font-family:monaco,menlo,consolas,"courier prime",courier,"courier new",monospace;font-size:12px;white-space:pre-wrap">,
</span><span style="color:rgb(68,68,68);font-family:monaco,menlo,consolas,"courier prime",courier,"courier new",monospace;font-size:12px;white-space:pre-wrap">"Port":</span><span style="color:rgb(68,68,68);font-family:monaco,menlo,consolas,"courier prime",courier,"courier new",monospace;font-size:12px;white-space:pre-wrap"> </span><span style="color:rgb(0,153,51);font-family:monaco,menlo,consolas,"courier prime",courier,"courier new",monospace;font-size:12px;white-space:pre-wrap">"443"</span><span style="color:rgb(68,68,68);font-family:monaco,menlo,consolas,"courier prime",courier,"courier new",monospace;font-size:12px;white-space:pre-wrap">,
</span><span style="color:rgb(68,68,68);font-family:monaco,menlo,consolas,"courier prime",courier,"courier new",monospace;font-size:12px;white-space:pre-wrap">"User Agent":</span><span style="color:rgb(68,68,68);font-family:monaco,menlo,consolas,"courier prime",courier,"courier new",monospace;font-size:12px;white-space:pre-wrap"> </span><span style="color:rgb(0,153,51);font-family:monaco,menlo,consolas,"courier prime",courier,"courier new",monospace;font-size:12px;white-space:pre-wrap">"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36"</span><span style="color:rgb(68,68,68);font-family:monaco,menlo,consolas,"courier prime",courier,"courier new",monospace;font-size:12px;white-space:pre-wrap">,
</span><span style="color:rgb(68,68,68);font-family:monaco,menlo,consolas,"courier prime",courier,"courier new",monospace;font-size:12px;white-space:pre-wrap">"Request Size":</span><span style="color:rgb(68,68,68);font-family:monaco,menlo,consolas,"courier prime",courier,"courier new",monospace;font-size:12px;white-space:pre-wrap"> </span><span style="color:rgb(0,153,51);font-family:monaco,menlo,consolas,"courier prime",courier,"courier new",monospace;font-size:12px;white-space:pre-wrap">"253"</span><span style="color:rgb(68,68,68);font-family:monaco,menlo,consolas,"courier prime",courier,"courier new",monospace;font-size:12px;white-space:pre-wrap">,
</span><span style="color:rgb(68,68,68);font-family:monaco,menlo,consolas,"courier prime",courier,"courier new",monospace;font-size:12px;white-space:pre-wrap">"Reply Size":</span><span style="color:rgb(68,68,68);font-family:monaco,menlo,consolas,"courier prime",courier,"courier new",monospace;font-size:12px;white-space:pre-wrap"> </span><span style="color:rgb(0,153,51);font-family:monaco,menlo,consolas,"courier prime",courier,"courier new",monospace;font-size:12px;white-space:pre-wrap">"4138"</span><span style="color:rgb(68,68,68);font-family:monaco,menlo,consolas,"courier prime",courier,"courier new",monospace;font-size:12px;white-space:pre-wrap">,
</span><span style="color:rgb(68,68,68);font-family:monaco,menlo,consolas,"courier prime",courier,"courier new",monospace;font-size:12px;white-space:pre-wrap">"Response Time(ms)":</span><span style="color:rgb(68,68,68);font-family:monaco,menlo,consolas,"courier prime",courier,"courier new",monospace;font-size:12px;white-space:pre-wrap"> </span><span style="color:rgb(0,153,51);font-family:monaco,menlo,consolas,"courier prime",courier,"courier new",monospace;font-size:12px;white-space:pre-wrap">"0"</span><span style="color:rgb(68,68,68);font-family:monaco,menlo,consolas,"courier prime",courier,"courier new",monospace;font-size:12px;white-space:pre-wrap">,
</span><span style="color:rgb(68,68,68);font-family:monaco,menlo,consolas,"courier prime",courier,"courier new",monospace;font-size:12px;white-space:pre-wrap">"Status Code":</span><span style="color:rgb(68,68,68);font-family:monaco,menlo,consolas,"courier prime",courier,"courier new",monospace;font-size:12px;white-space:pre-wrap"> </span><span style="color:rgb(0,153,51);font-family:monaco,menlo,consolas,"courier prime",courier,"courier new",monospace;font-size:12px;white-space:pre-wrap">"403"</span><span style="color:rgb(68,68,68);font-family:monaco,menlo,consolas,"courier prime",courier,"courier new",monospace;font-size:12px;white-space:pre-wrap">,
</span><span style="color:rgb(68,68,68);font-family:monaco,menlo,consolas,"courier prime",courier,"courier new",monospace;font-size:12px;white-space:pre-wrap">"Request Status":</span><span style="color:rgb(68,68,68);font-family:monaco,menlo,consolas,"courier prime",courier,"courier new",monospace;font-size:12px;white-space:pre-wrap"> </span><span style="color:rgb(0,153,51);font-family:monaco,menlo,consolas,"courier prime",courier,"courier new",monospace;font-size:12px;white-space:pre-wrap">"TCP_DENIED"</span><span style="color:rgb(68,68,68);font-family:monaco,menlo,consolas,"courier prime",courier,"courier new",monospace;font-size:12px;white-space:pre-wrap">,
</span><span style="color:rgb(68,68,68);font-family:monaco,menlo,consolas,"courier prime",courier,"courier new",monospace;font-size:12px;white-space:pre-wrap">"Server FQDN":</span><span style="color:rgb(68,68,68);font-family:monaco,menlo,consolas,"courier prime",courier,"courier new",monospace;font-size:12px;white-space:pre-wrap"> </span><span style="color:rgb(0,153,51);font-family:monaco,menlo,consolas,"courier prime",courier,"courier new",monospace;font-size:12px;white-space:pre-wrap">"-"</span><span style="color:rgb(68,68,68);font-family:monaco,menlo,consolas,"courier prime",courier,"courier new",monospace;font-size:12px;white-space:pre-wrap">
}</span> </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Nov 15, 2019 at 3:15 PM Amos Jeffries <<a href="mailto:squid3@treenet.co.nz">squid3@treenet.co.nz</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 15/11/19 2:56 pm, chammidhan wrote:<br>
> I have configured a Squid ECS cluster behind a network load balancer in AWS.<br>
> To reflect the original client IP, I needed to enable PROXY Protocol V2 on<br>
> the load balancer. The service itself is working fine and I can create rules<br>
> based on the original client IP and these are applied as expected. However,<br>
> it doesn't seem that logformat format codes are working as expected. No<br>
> matter how I format the logs, I'm always seeing the logs in the same format.<br>
> Which looks like below.<br>
> <br>
> 1573771498.693 240116 10.181.3.10 TCP_TUNNEL/200 1742 CONNECT<br>
> <a href="http://id.google.com:443" rel="noreferrer" target="_blank">id.google.com:443</a> - HIER_DIRECT/<a href="http://172.217.167.67" rel="noreferrer" target="_blank">172.217.167.67</a> -<br>
> <br>
> My logformat directive is the default<br>
> logformat squid %{%Y/%m/%d-%H:%M:%S}tl %>A/%>a %un %rm/%rv %ru %mt<br>
> %{User-Agent}>h %>st/%<st %tr %>Hs %Ss %Sh/%<A<br>
> <br>
> Appreciate any insight to what I may be doing wrong. Things were working<br>
> fine before enabling PROXY protocol on the NLB<br>
> <br>
<br>
Please run "squid -k parse" on your config and fix the errors and<br>
warnings it produces.<br>
<br>
"<br>
2019/11/15 18:11:50| Processing: logformat squid %{%Y/%m/%d-...<br>
2019/11/15 18:11:50| ERROR: logformat squid is already defined. Ignoring.<br>
"<br>
<br>
To use a custom log format you need a custom name.<br>
<br>
<br>
Amos<br>
_______________________________________________<br>
squid-users mailing list<br>
<a href="mailto:squid-users@lists.squid-cache.org" target="_blank">squid-users@lists.squid-cache.org</a><br>
<a href="http://lists.squid-cache.org/listinfo/squid-users" rel="noreferrer" target="_blank">http://lists.squid-cache.org/listinfo/squid-users</a><br>
</blockquote></div>