Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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

Squid is good one, also webmin. I am still new to this, can someone helping how to see the Squid progress in terminal or in webmin? I mean when we open some site its going also on squid and showing the logs that site have being hit, miss, or have in cache? Also any idea to using Squid or webmin to block the ads, websites, or keywords? Thanks.

share|improve this question
up vote 2 down vote accepted

You can also use squid-graph for that to view cache hits,etc etc

Monitoring Squid with Squid-Graph

Squid Graph is a free, simple, yet powerful Squid v2 native logfile analysis tool that generates reports with graphical representation of the proxy server’s traffic.

1.To install Squid-Graph we need perl and gd module.

sudo apt-get install libgd-gd2-perl

2.Download Squid-Graph from the source.We can also download with wget.


3.Extract Squid-graph

tar xzvf squid-graph-3.2.tar.gz -C /etc/init.d/

4.Add execute permission

chmod +x /etc/init.d/squid-graph/*

5.Make html directory in document root (default : /var/www)

cd /var/www

mkdir squid-graph

cd /etc/init.d/squid-graph

./squid-graph --tcp-only -n -o=/var/www/squid-graph/ --title="proxy" < /var/log/squid/access.log

6.Open the web browser , type

alt text

Thats it.

share|improve this answer

Squid logs are configured by default in /var/log/squid/access.log. You can change this setting via cache_access_log in /etc/squid/squid.conf (but remember to sudo service squid restart after making the change). You could tail -f that file.

For site-blocking, I recommend using jesred, which is available in the Ubuntu archive already. You can find details on using it here:

See the redirect_program /usr/lib/squid/jesred example in /etc/squid/squid.conf.

share|improve this answer
tail -f /var/log/squid/access.log
share|improve this answer
It would be more helpful if you explained exactly what this answer did. – user323419 Oct 1 '15 at 17:02

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.