Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm on an ADSL connection that has a bandwidth limit (I can download 100 gig per month). For a bit of a test I set up Squid as a transparent web proxy to capture all HTTP traffic and attempt to cache some of it.

Is there anything in Squid that lets me find out simple things like

"Clients requested 500 meg of stuff, the cache provided 150 meg of that content"

i.e I want to find out if the cache is actually doing anything useful.

I have the cachemgr.cgi running, but the data it provides is... difficult to understand.

share|improve this question
up vote 3 down vote accepted

There are lots of squid cache log analyzers available. Personally I used only sarg which is quite nice but not very fancy. It is shipped by various distributions.

share|improve this answer
I'll look at Sarg, it might be useful. I also remembered I have cacti running, so maybe that can make some graphs for me too. – Piku Jun 20 '13 at 9:22

I know this answer is a few years late, but noone has answered the simple command line tool squidclient

squidclient mgr:info | grep "Hit Ratios"

should give you the info on hit percentages, then its a matter of working back from totals.

IE, a 60min Byte Hit Ratio of 20% and a total traffic of 100MB means 20MB was served by your squid proxy in the last hour.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.