RE: [squid-users] Custom Log

From: Cole <cole@dont-contact.us>
Date: Mon, 3 Apr 2006 17:06:47 +0200

Hi.

Just out of curiosity. With mime hdr logging turned on, what kind of performance hit are we looking
at?

Regards
/Cole

-----Original Message-----
From: Henrik Nordstrom [mailto:henrik@henriknordstrom.net]
Sent: Monday, April 03, 2006 3:08 PM
To: cole@opteqint.net
Cc: 'Squid Users'
Subject: RE: [squid-users] Custom Log

mån 2006-04-03 klockan 10:56 +0200 skrev Cole:

> 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?

Looks reasonable.

> Also when you speak about the Content-Length request header, which specific structure holds this
> value?

See LFT_REQUEST_HEADER_ELEM. The Content-Length header have the internal
id HDR_CONTENT_LENGTH. Also it's a size field so it's easier to get by
using httpHeaderGetSize() function. Be warned that -1 is returned if
there is no content-legnth header.

Regards
Henrik
Received on Mon Apr 03 2006 - 09:07:02 MDT

This archive was generated by hypermail pre-2.1.9 : Mon May 01 2006 - 12:00:02 MDT