RE: [squid-users] Custom Log

From: Cole <cole@dont-contact.us>
Date: Wed, 29 Mar 2006 15:19:52 +0200

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?

Regards
/Cole

-----Original Message-----
From: Henrik Nordstrom [mailto:henrik@henriknordstrom.net]
Sent: Wednesday, March 29, 2006 1:24 PM
To: cole@opteqint.net
Cc: 'Squid Users'
Subject: RE: [squid-users] Custom Log

tor 2006-03-23 klockan 09:03 +0200 skrev Cole:
> Hi.
>
> Apparently it seems im looking for the wrong thing then maybe. What I would like to log is the
> request from the client, the entire size in its totality.
> The entire request from beginning to end,
> the entire size of all packets together that would go into a normal request to squid for each
> access.log line.

Which usually is no more than the request line + request headers, and
the only size variable (for the same client) is the length of the URL in
the request line..

Exceptions:
- Cookies, adds the the size of the request header
- PUT/POST or other requests with request-entities. The size of the
request entity is determined by the Content-Length request header.

Squid does not see packets. Squid sees a stream of data formatted per
the HTTP protocol specification, usually carried over TCP.

Regards
Henrik
Received on Wed Mar 29 2006 - 06:20:06 MST

This archive was generated by hypermail pre-2.1.9 : Sat Apr 01 2006 - 12:00:04 MST