Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.