Re: Concurrent users logged in

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Mon, 29 Mar 1999 21:03:01 +0200

Joel Taqueban wrote:
> currently logged in. With Squid, how should I determine or know the
> users currently accessing the web via the proxy". Sorry for being

Perhaps the simplest equivalence of "who" for a HTTP proxy is by parsing
the last minutes of traffic log.

One example of a such command:
echo "username ip-address" ; tail -c 100000
/usr/local/squid/logs/access.log | read junk | awk '{print $8 $3}' |
sort -u

Adjust 100000 to match the amount of logs generated for the time period
you'd like to see.

---
Henrik Nordstrom
Spare time Squid hacker
Received on Mon Mar 29 1999 - 13:55:19 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:45:34 MST