Re: [squid-users] Logging bandwidth for streams?

From: chrisw23 <chris_at_nonfatal.com>
Date: Tue, 2 Jun 2009 05:55:15 -0700 (PDT)

That's perfect, thanks a lot.

Chris

Amos Jeffries-2 wrote:
>
> chrisw23 wrote:
>> Hi,
>> Is it possible to get squid to log the bandwidth used for a stream? In my
>> access.log I only get actual intial file downloads and I need to limit
>> users' total bandwidth - including any streaming content they've
>> downloaded.
>>
>> Thanks,
>> Chris
>
> You mean the size of the CONNECT request transfer?
>
> Yes, but you currently need to use custom log formats.
>
> Copy the demo format (squid or common etc) from
> squid.conf.default/squid.conf.documented or
> http://www.squid-cache.org/Doc/config/logformat/
>
> Replace the "%<st" tag with just "%st".
>
> That will log the full transfer size including outgoing rather than just
> the reply. You will notice a large increase in sizes for
> POST/PUT/CONNECT and smaller increase for all others.
>
> Amos
> --
> Please be using
> Current Stable Squid 2.7.STABLE6 or 3.0.STABLE15
> Current Beta Squid 3.1.0.8 or 3.0.STABLE16-RC1
>
>

-- 
View this message in context: http://www.nabble.com/Logging-bandwidth-for-streams--tp23831376p23831981.html
Sent from the Squid - Users mailing list archive at Nabble.com.
Received on Tue Jun 02 2009 - 12:55:20 MDT

This archive was generated by hypermail 2.2.0 : Tue Jun 02 2009 - 12:00:01 MDT