Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
cancel
Showing results for 
Search instead for 
Did you mean: 

Monitoring Squid cache usage

SOLVED
Go to solution
Jeff_198
Occasional Visitor

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
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
Occasional Visitor

Re: Monitoring Squid cache usage

Thanks for 3 good responses :)