do not use #emulate_httpd_log on On Fri, Jan 23, 2009 at 7:34 AM, Amos Jeffries <squid3@xxxxxxxxxxxxx> wrote: > sameer shinde wrote: >> >> Hi All, >> >> Below given are the containt of my access log file. >> >> 22/Jan/2009 09:00:46 125 192.168.1.0 192.168.1.75 TCP_MISS/200 486 >> GET http://www.google-analytics.com/__utm.gif? - NONE/- image/gif >> 22/Jan/2009 09:00:46 305 192.168.1.0 192.168.1.75 TCP_MISS/200 3462 >> GET http://googleads.g.doubleclick.net/pagead/ads? - >> DIRECT/209.85.153.154 text/html >> 22/Jan/2009 09:00:47 242 192.168.1.0 192.168.1.75 TCP_MISS/304 468 >> GET http://www.mail2web.com/includes/functions.js? - NONE/- - >> 22/Jan/2009 09:00:47 240 192.168.1.0 192.168.1.75 TCP_MISS/200 1339 >> GET http://www.mail2web.com/cgi-bin/banner/ad.asp? - NONE/- text/html >> 22/Jan/2009 09:00:48 482 192.168.1.0 192.168.1.75 TCP_MISS/200 3703 >> GET http://googleads.g.doubleclick.net/pagead/ads? - >> DIRECT/209.85.153.154 text/html >> 22/Jan/2009 09:00:49 126 192.168.1.0 192.168.1.75 TCP_MISS/200 486 >> GET http://www.google-analytics.com/__utm.gif? - NONE/- image/gif >> 22/Jan/2009 09:00:50 498 192.168.1.0 192.168.1.75 TCP_MISS/200 3280 >> GET http://googleads.g.doubleclick.net/pagead/ads? - >> DIRECT/209.85.153.154 text/html >> 22/Jan/2009 09:00:58 468 192.168.1.0 192.168.1.75 TCP_MISS/200 1290 >> GET http://www.mail2web.com/cgi-bin/banner/ad.asp? - >> DIRECT/168.144.1.11 text/html >> 22/Jan/2009 09:00:58 220 192.168.1.0 192.168.1.75 TCP_MISS/200 3153 >> GET http://googleads.g.doubleclick.net/pagead/ads? - >> DIRECT/209.85.153.154 text/html >> >> >> The log file shows my network id (192.168.1.0) and my proxy server ip >> address (192.168.1.75) >> How can I set the log format, so that the client computers ip address >> can be logged. >> (IP address of a computer from which the site was accessed) > > Such IPs are logged in the access.log of the reverse-proxy where the clients > connected. > For statistical processing or analysis of any kind you should work from the > proxy logs any, since ~80% of the requests never make it to the web server > at all. > > Amos > -- > Please be using > Current Stable Squid 2.7.STABLE5 or 3.0.STABLE12 > Current Beta Squid 3.1.0.3 > -- -=-=-=-= Personal Blog http://my.blog.or.id ( lagi belajar ) Hot News !!! : Pengin punya Layanan SMS PREMIUM ? Contact me ASAP. dapatkan Share revenue MAXIMAL tanpa syarat traffic...