Re: [squid-users] upload data report

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Sat, 15 Dec 2012 13:49:43 +1300

On 15/12/2012 2:02 a.m., Muhammad Yousuf Khan wrote:
> On Fri, Dec 14, 2012 at 2:22 PM, Amos Jeffries <squid3_at_treenet.co.nz> 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
Received on Sat Dec 15 2012 - 00:49:50 MST

This archive was generated by hypermail 2.2.0 : Sat Dec 15 2012 - 12:00:05 MST