[squid-users] dumb question: how to get http server IP into logs?

Jason Haar jason_haar at trimble.com
Sun Jul 30 10:02:54 UTC 2017


Hi there

We're running squid-3.5.23 and use ICAP (if that makes a difference)

We also use logformat to include certain details in the logs - but I can't
see an option for including the actual IP address that squid uses when
attempting to fulfil an URL request. eg squid gets told to go to twitter.com,
resolves that to 4 IPs, tries 1st - fails, tries 2nd - succeeds. I'd like
to record that IP in the logs along with everything else. I can see
variables for recording the client and squid-server IP - but not the web
server?

Is that possible? I'm sure older (3.2) squid used to do that by default?
(DIRECT/1.2.3.4?). All our logs are now "HIER_DIRECT"

Thanks

-- 
Cheers

Jason Haar
Information Security Manager, Trimble Navigation Ltd.
Phone: +1 408 481 8171
PGP Fingerprint: 7A2E 0407 C9A6 CAF6 2B9F 8422 C063 5EBB FE1D 66D1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20170730/66298ecd/attachment.html>


More information about the squid-users mailing list