SARG – Squid Analysis Report Generator and Internet Bandwidth Monitoring Tool

Best Affordable Linux and WordPress Services For Your Business
Outsource Your Linux and WordPress Project and Get it Promptly Completed Remotely and Delivered Online.

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.45/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Ravi Saive

I am Ravi Saive, creator of TecMint. A Computer Geek and Linux Guru who loves to share tricks and tips on Internet. Most Of My Servers runs on Open Source Platform called Linux. Follow Me: Twitter, Facebook and Google+

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

135 Responses

  1. max says:

    I would like to change the period but I don’t know where it changes.

  2. Juan says:

    Hello People

    Please, I would like to setup this feature in my Suse Server, does this possible?

  3. Juan says:

    Hello Folks,

    I´d like to know the procedure to setup this tool in Suse!!!

    Thanks a lot for your help and support.

  4. dan says:

    Hi, why my “denied accesses” is empty and not present when I’m accessing the http://x.x.x.x/squid-reports?

  5. Fentahun says:

    I have configured sarg in Linux, still it is not generating the report.

  6. Ram says:


    I’ve finished installing SARG but it displays a list of directory instead of the default index page of SARG and from the URL on the browser localhost/squid-reports this appears

    Index of /squid-reports
    [ICO]	Name	Last modified	Size	Description
    [PARENTDIR]	Parent Directory	 	- 	 
    [DIR]	2018Jan11-2018Jan11/	2018-01-11 14:23 	- 	 
    [DIR]	images/	2018-01-11 14:23 	- 	 
    Apache/2.4.18 (Ubuntu) Server at localhost Port 80
  7. Adeel says:

    I got this error after configuring SARG.

    Please help.

    SARG: sarg version: 2.3.1 Sep-18-2010
    SARG: Reading access log file: /var/log/squid/access.log
    SARG: Records in file: 3711, reading: 100.00%
    SARG: Records read: 3711, written: 3396, excluded: 0
    SARG: Squid log format
    SARG: Period: 01 Jan 1970
    SARG: pre-sorting files
    SARG: Making file: /tmp/sarg/18705
    SARG: Making file: /tmp/sarg/accounts_google_com_443
    SARG: getword_atoll loop detected after 0 bytes.
    SARG: Line="01/01/1970  05:00:07        172234  CONNECT"
    SARG: Record="TCP_MISS/200     +0500   """
    SARG: searching for 'x9'
    SARG: getword backtrace:
    SARG: 1:sarg() [0x4054b7]
    SARG: 2:sarg() [0x405668]
    SARG: 3:sarg() [0x40d41f]
    SARG: 4:sarg() [0x40c183]
    SARG: 5:/lib64/ [0x3e8de1ed5d]
    SARG: There is a broken record or garbage in file /tmp/sarg/accounts_google_com_443.log
  8. Thisara says:

    Hi Thank You very much , it is really interest and useful article. Is it possible to set the login page to access squid-reports? or change URL address to some thing else with out using eg

    Thank You

  9. tuem says:

    Hi Ravi,

    Thanks for your guide, but i have some problem with my Squid. I use Squid 3.5.20 on Centos7 as transparent proxy. But my squid can’t show domain name of destination server like you. So my reports in top Sites are all ip address like for HTTPS conenction. How can i fix it ?

    Thanks a lot !

Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.