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

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Wed, 03 Jun 2009 00:39:39 +1200

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
Received on Tue Jun 02 2009 - 12:39:47 MDT

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