Search squid archive

Re: Logging bandwidth for streams?

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

 



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

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

  Powered by Linux