Search squid archive

Re: upload data report

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 15/12/2012 2:02 a.m., Muhammad Yousuf Khan wrote:
On Fri, Dec 14, 2012 at 2:22 PM, Amos Jeffries <squid3@xxxxxxxxxxxxx> wrote:
On 14/12/2012 9:21 p.m., Muhammad Yousuf Khan wrote:
i want to check how much data has been uploaded by users like we have
the ability to see download reports via Sarg reporting tool. i know we
can not decrypt HTTPS traffic, i dont even want to see the file names
and size. but we want to see how much data has been uploaded by who
and where with only the upload over all size.

like we have Sarg reporting for downloading but now we want also to
track uploading data.

my squid is running in proxy mode.

Thanks.

You need to log the details. Create a custom log format and use it in an
access_log line.

http://www.squid-cache.org/Doc/config/logformat
http://www.squid-cache.org/Doc/config/access_log

thanks for the help.

i was reading in an article that says if i define 2 different log file
one for upload log and second for download log sarg would be able to
make two reports. separately

there for i create another log format with "%>st" however i still get
too much entries.or more or less the same amount of entries in both
log files.

Yes. This is because every transaction in HTTP has data flowing in both directions.

%>st logs the size of transaction for request.

You can also log the size of just the headers and subtract one from the other to get body octet sizes (if any).

But in practice if you are billing it is best to use %st and bill on total transaction bytes sent regardless of direction.

Amos


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux