Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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 am sysadmin and would like to deny ad websites on squid level.. but not all, just slowest ones...

Is it possible to get a statistics of most slowest websites squid accessing to?

share|improve this question
up vote 1 down vote accepted

Assuming you use the default squid logfile format for your access.log, to see the slowest requests, try something like:

grep -w MISS /path/to/squid/access.log | cut -f 2,7 -d ' ' | sort -nr
share|improve this answer
Thanks. That worked in my case: cat access.log | gawk '{print $2,$7}' | sort -nr – Dennis Yurichev Jul 10 '12 at 6:38
@DennisYurichev Please note that gawk can open files directly, no need for cat. :) – Creshal Jul 10 '12 at 8:55

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.