Operating System - Linux
1753555 Members
5336 Online
108795 Solutions
New Discussion юеВ

Re: Monitoring Squid cache usage

 
SOLVED
Go to solution
Jeff_198
New Member

Monitoring Squid cache usage

Is there a log file or something where you can look at and see which client (address) is making a cache request? I have used cache manager to look at various things like "IP Cache Stats and Contents". This shows the addresses of the requested (cached) sites but not the address of who requested it.
4 REPLIES 4
Stuart Browne
Honored Contributor
Solution

Re: Monitoring Squid cache usage

The access log (on a RH system, /var/log/squid/access.log) shows all of the details of a cache request.

It usually shows things like:

timestamp

requesting IP
cache or direct request/return code
size
request
-
action/remote ip
mime type

The 'address' of the requester (the client PC) is the 'requesting IP'. If you want to know who it is, use 'dig' or 'nslookup'.

There are a large number of routines around that can parse this log file and show what you want (hell, I used to throw it in to a DB and do some funky PHP graphs showing usage!), and there's always the ability to write your own.

http://www.squid-cache.org is your friend in this case *nod*.
One long-haired git at your service...
Karthik S S
Honored Contributor

Re: Monitoring Squid cache usage

Hi,

Check these links,

http://www.isp-planet.com/equipment/squid_monitor.html

http://www.squid-cache.org/Doc/FAQ/FAQ-18.html

Regards,
Karthik S S
For a list of all the ways technology has failed to improve the quality of life, please press three. - Alice Kahn
U.SivaKumar_2
Honored Contributor

Re: Monitoring Squid cache usage

Hi,

I am enjoying using this tool.

http://web.onda.com.br/orso/sarg.html

regards,
U.SivaKumar


Innovations are made when conventions are broken
Jeff_198
New Member

Re: Monitoring Squid cache usage

Thanks for 3 good responses :)