Re: [squid-users] customlog format, only log URL path?

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Mon, 6 Jun 2005 00:38:26 +0200 (CEST)

On Wed, 1 Jun 2005, Michael Pye wrote:

> %r in Apache only logs the URL path of the request, i.e.
> /mydir/myfile.gif, wheres %ru in Squid logs the full URL requested, i.e.
> www.mydomin.com/mydir/myfile.gif. Is it possible to get Squid to only
> log the URL path part ?

Yes, by adding a log format code for this to the Squid sources.

> The apache %T logs the time taken to process the request in seconds
> whereas the Squid %tr logs the time taken in milliseconds. Anyway of
> getting Squid to log this in seconds ? I guess the easiest would be just
> to modify the customlog patch to divide the value by 1000 and round it
> up before logging it.

Sounds reasonable.

Are you sure you want to round it up? Isn't it better to print it with
some decimals precision (0.041 seconds)

Regards
Henrik
Received on Sun Jun 05 2005 - 16:38:28 MDT

This archive was generated by hypermail pre-2.1.9 : Fri Jul 01 2005 - 12:00:02 MDT