Slowest websites statistics from squid logs

Dennis Yurichev asked:

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?

My answer:


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

View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.