Re: [squid-users] Logging clients IP in cache.log

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Wed, 24 Mar 2004 17:10:38 +0100 (CET)

On Wed, 24 Mar 2004, Matus UHLAR - fantomas wrote:

> > But as Marc said, it is not difficult to identify the client IP by looking
> > in access.log for what happened at the same time, and for forwarding loops
> > there is a great deal of information already in the HTTP headers logged in
> > cache.log, including a full trace of how the request has been forwarded
> > (see the Via and X-Forwarded-For headers)
>
> Well, the HTTP headers in some cases include something that is not 100%
> usefull for me.

Then extending the information with the client IP is most likely also not
going to be 100% useful for you.. the client IP here is the IP address of
the peer who sent us the request, and this you SHOULD be able to derive
from the Via header or you have a very strange and unreliable peering
setup..

Regards
Henrik
Received on Wed Mar 24 2004 - 09:10:42 MST

This archive was generated by hypermail pre-2.1.9 : Thu Apr 01 2004 - 12:00:02 MST