[squid-users] Forwarded-for functionality(squid)
piyush.gaba at orange.com
piyush.gaba at orange.com
Tue Sep 8 13:15:57 UTC 2020
Hi Matus,
Thank you for your reply.
I think my whole struggle is to get the desired output as:
<ip>- - [17/Aug/2018:08:43:29 +0200] "GET /index1.html HTTP/1.1" 200 36 "-" "curl/7.29.0" unknown
Which has "unknown" at the end because forwarded_for was set to "off".
But now when I am working with squid 4.13 I am not getting the desired output, I am getting the output as,
<ip> - - [08/Sep/2020:15:07:19 +0200] "GET /index1.html HTTP/1.1" 200 8 "-" "curl/7.29.0"
Which does not have anything at the end, while the forwarded_for is set to "off".
Please let me know if you have any advice to give for this logging problem.
I am using below log format in my httpd file,
LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
Bien cordialement,
Piyush Gaba
More information about the squid-users
mailing list