[squid-users] howto log outbound bytes properly?

Amos Jeffries squid3 at treenet.co.nz
Mon Feb 15 14:16:49 UTC 2016


On 15/02/2016 12:05 p.m., Jason Haar wrote:
> Hi there
> 
> Given the major usage of Cloud file sharing and things like HD video
> sharing (eg Skype), the amount of outbound bandwidth used by "browsers"
> can be comparable with inbound - and yet by default squid does not
> record this in the logging
> 
> So I added "%>st" to logformat and sure enough, uploading a file via PUT
> over http now records the outbound bytes. However - doing the same file
> over https gave a tiny size - I'd guess it's only the HTTP headers
> cadaver was using as it did it's CONNECT call
> 
> So is that a bug, or is there some other variable for catching outbound
> bytes for CONNECT?
> 

A bug, sort of. Squid-3 is recording the HTTP traffic. The "stuff"
following a CONNECT message is not HTTP.

This is <http://bugs.squid-cache.org/show_bug.cgi?id=3069>. Which is
fixed in Squid-4
<http://www.squid-cache.org/Versions/v4/changesets/squid-4-14325.patch>.

Amos



More information about the squid-users mailing list