Thanks for the response Amos. This is an AWS Fargate instance and I'm not exactly sure how patching works in that space. I'm rather new to both serverless concept and Squid. I will research this and get back to you. Thanks!<br><br>On Friday, November 22, 2019, Amos Jeffries <<a href="mailto:squid3@treenet.co.nz">squid3@treenet.co.nz</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 22/11/19 4:05 pm, Chammi Kumarapathirage wrote:<br>
> I have my logformat as follows.<br>
> logformat jsonformat {"Client Hostname":"%>A","Source IP":"%>a","HTTP<br>
> Method":"%rm","HTTP Protocol version":"%rv","Request<br>
> Domain":"%>rd","Port":"%>rP","<wbr>User Agent":"%{User-Agent}>h","<wbr>Request<br>
> Size":"%>st","Reply Size":"%<st","Response Time(ms)":"%tr","Status<br>
> Code":"%>Hs","Request Status":"%Ss","Server FQDN":"%<A"} <br>
> <br>
> The proxy is sitting behind a load balancer in AWS and Proxy Protocol V2<br>
> is enabled on both the LB and Squid. Everything seems to work fine. I<br>
> can create rules based on source IP of the client. However. I want to be<br>
> able to  create rules based on the hostname of the original client. But<br>
> it doesn't seem that Squid sees the original client's hostname. Rather<br>
> it takes the hostname of the LB as seen by below log.<br>
<br>
The %>A log code is still tied to old logging state instead of the IP<br>
values updated by PROXY protocol.<br>
<br>
The only way I can see to log that value without patching Squid is with<br>
something complicated like an external_acl_type helper to do the lookup<br>
and supply it as a tag or note to Squid.<br>
<br>
If you are happy to patch I can make a PR for you to try.<br>
<br>
<br>
Amos<br>
______________________________<wbr>_________________<br>
squid-users mailing list<br>
<a href="mailto:squid-users@lists.squid-cache.org">squid-users@lists.squid-cache.org</a><br>
<a href="http://lists.squid-cache.org/listinfo/squid-users" target="_blank">http://lists.squid-cache.org/<wbr>listinfo/squid-users</a><br>
</blockquote>