Search squid archive

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

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

 



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

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

  Powered by Linux