Hi. Ive updated the access_log.c file to look something like this : case LFT_REQUEST_SIZE_TOTAL: outint = strlen(al->headers.request) + strlen(al->private.method_str) + strlen(al->url); doint = 1; break; Is that correct so far? Also when you speak about the Content-Length request header, which specific structure holds this value? Regards /Cole -----Original Message----- From: Henrik Nordstrom [mailto:henrik@xxxxxxxxxxxxxxxxxxx] Sent: Thursday, March 30, 2006 12:21 AM To: cole@xxxxxxxxxxxx Cc: 'Squid Users' Subject: RE: Custom Log ons 2006-03-29 klockan 15:19 +0200 skrev Cole: > Hi. > > So if i were to implement the LFT_REQUEST_SIZE_TOTAL for my own logs. What datastructure could I use > to get the entire request size? What you did, but to this you need to add the length of the request line. This isn't available directly, but you can calculate it by adding the length of the request method plus the length of the requested URL. And to this you need to add the value of the Content-Length request header, if any, to include the size of the (optional) request entity (data being sent to the server) Regards Henrik