Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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

Suppose I were to build proxy server using squid with multiple accounts. Is there a way to determine how much data has been consumed by each account?

By data I mean total sum of all bytes which are sent as a result of a request. So if a webpage is requested, the count should include all bytes (images, html, js, flash, movies, etc).

I could not find it in the squid doc. Is there a programming hook I can use? Or another program?

share|improve this question
You can use SARG. – Eric Carvalho Dec 23 '12 at 18:18
thanks. I can accept your answer if you post it as an answer. – Nasir Dec 24 '12 at 1:37
up vote 1 down vote accepted

You can use SARG:

Sarg - Squid Analysis Report Generator is a tool that allow you to view "where" your users are going to on the Internet. Sarg provides many informations about Squid users activities: times, bytes, sites, etc...

Sample reports.


share|improve this answer

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.