Re: [squid-users] Re[squid-users] cording content length prior to transfer

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Tue, 10 Mar 2009 11:35:11 +1300 (NZDT)

>
> Hi,
>
> Object sizes are logged in access.log (as per the logformat) only after
> the
> transfer of that object is complete. But is there any way to record the
> content-length of an object before the transfer actually begins? I found
> that running debug (level 9) on HTTP header section (55) prints the
> content-length of objects in cache.log prior to transfer. But cache.log is
> quite difficult to parse. Is there any other way of recording the
> content-length prior to transfer (without modifying the source)?
>
> Thanks & Regards,
> Kaustav
> --

Not really.

The Content-Length header can be logged by using a custom logformat
including the "%{Content-Length}>h" tag.

BUT:
 * Content-Length is not always available.
 * logging is still done after the request has finished due to other
information.

Amos
Received on Mon Mar 09 2009 - 22:35:14 MDT

This archive was generated by hypermail 2.2.0 : Tue Mar 10 2009 - 12:00:03 MDT