How to log user access info in access.log

How to log user access info in access.log

Post by Kevin LE » Sat, 27 Oct 2001 09:19:01

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: - - [26/Oct/2001:09:36:15 +1000] "GET HTTP/1.0" 200 1854 TCP_MISS:DIRECT - - [26/Oct/2001:09:36:16 +1000] "GET HTTP/1.0" 200 994 TCP_MISS:DIRECT - - [26/Oct/2001:09:36:16 +1000] "GET HTTP/1.0" 200 1312 TCP_MISS:DIRECT - - [26/Oct/2001:09:36:16 +1000] "GET HTTP/1.0" 200 712 TCP_MISS:DIRECT - - [26/Oct/2001:09:36:17 +1000] "GET 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


1. Need HELP to Log User Log-ins form the internet


I've setup a FreeBSD 4.1.1-STABLE box to connect a network to the internet
with natd and ipfw firewall.
I've also setup the FreeBSD box to let teleworkers log in with FTP and

Now I would like to log FTP and telnet Log-in's from teleworkers who connect
to the machine from the internet.
I woul like to see the time and IP numer from which users Log-in.

I have looked at the /var/log/messages file but this only shows SU Login's.

All help is greatly appriciated!


2. Floppy problems and mouse problems

3. Apache 1.3.12 access.log logging error

4. direct maps don't work under solaris automounter?

5. let users view access.log

6. Unix batch file

7. error log vs access log analysis

8. NewsChannel Now Available!

9. logging cannot access log

10. Apache: Proxy not logged, other accesses logged?

11. Do not log requests for images in the access log?

12. how to access log name inside the log definition

13. Is it possible to access a server's access log from another server?