Re: [squid-users] Get IP for hostname portion in the URL?

From: Mark Elsen <[email protected]>
Date: Wed, 1 Mar 2006 14:54:22 +0100

> A log entry looks like this:
>
> 1141175786.622 50 141.42.60.21 TCP_MISS/200 4132 GET http://www.tjaereborg.de/media/TJAEREBORG_Winter_2005_ZP0133_liste_-2.jpg - DEFAULT_PARENT /127.0.0.1 image/jpeg
>
> Is there any pre-existing code that ADDS an additional column to the
> log entry -- the IP of the hostname portion in the URL, e.g.
>
> 1141175786.622 50 141.42.60.21 TCP_MISS/200 4132 GET http://www.tjaereborg.de/media/TJAEREBORG_Winter_2005_ZP0133_liste_-2.jpg 194.195.126.53 ...
>

 - SQUID version ?
 - For the latest STABLE release, the following applies (squid.conf) :

# TAG: log_ip_on_direct on|off
# Log the destination IP address in the hierarchy log tag when going
# direct. Earlier Squid versions logged the hostname here. If you
# prefer the old way set this to off.
#
#Default:
# log_ip_on_direct on

M.
Received on Wed Mar 01 2006 - 06:54:24 MST

This archive was generated by hypermail pre-2.1.9 : Sat Apr 01 2006 - 12:00:03 MST