RE: [squid-users] How to log user access info in access.log

From: Costa, Todd (DMH) <Todd.Costa@dont-contact.us>
Date: Thu, 25 Oct 2001 12:12:07 -0400

Hi Squid-users,

        Yes, This is a good question. I am researching this logging issue
also. I want to know the requesting hostname name also in the access_log
file too because we use DHCP and the IP address changes over time for each
hostname. I am sure that's a different issue but I need to see the hostname
in the access_log since I am using SQUID in transparent mode for my needs.
Having just the IP isn't enough.

        Therefore, I am looking for suggestions too.

Thanks,

Todd

------------------------------------------------------
"Work Smarter, Not Harder...Use Open Source Solutions"

-----Original Message-----
From: Kevin LEE [mailto:kevkev@netvigator.com]
Sent: Thursday, October 25, 2001 8:19 PM
To: Squid Post
Subject: [squid-users] How to log user access info in access.log

Hi all:

I am running squid squid-2.3.STABLE4-10.7.1 in RedHat 7.1

I have turn on the "emulate_httpd_log on" in the squid.conf to change
the common file format.

The output of access.log file is shown as follow:

192.168.1.8 - - [26/Oct/2001:09:36:15 +1000] "GET
http://www.google.com/nav_next.gif HTTP/1.0" 200 1854 TCP_MISS:DIRECT
192.168.1.8 - - [26/Oct/2001:09:36:16 +1000] "GET
http://www.google.com/images/res3.gif HTTP/1.0" 200 994 TCP_MISS:DIRECT
192.168.1.8 - - [26/Oct/2001:09:36:16 +1000] "GET
http://www.google.com/nav_first.gif HTTP/1.0" 200 1312 TCP_MISS:DIRECT
192.168.1.8 - - [26/Oct/2001:09:36:16 +1000] "GET
http://www.google.com/nav_page.gif HTTP/1.0" 200 712 TCP_MISS:DIRECT
192.168.1.8 - - [26/Oct/2001:09:36:17 +1000] "GET
http://216.239.35.248/speed.gif HTTP/1.0" 200 363 TCP_MISS:DIRECT

According to the doc. the username should be in between the client host
ip address and the [Time Stamp].
However, it appears to be - -.

How to I configure squid to output the Unix username to the access
logfile.
Received on Thu Oct 25 2001 - 10:20:25 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:03:08 MST