Re: [squid-users] Reverse proxying and application logging

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Sat, 6 Nov 2004 00:48:26 +0100 (CET)

On Fri, 5 Nov 2004, Erwin Wessels wrote:

> The problem is that I've got a dynamic website which uses Squid as a reverse
> proxy to reduce load. So far so good - works like a charm.

> The problem is, the logs as generated by Squid miss 2 types of
> information: 1) POST variables and 2) application logging info (how we
> generated this response).

POST variables is a little tricky to log due to the nature how these are
sent by the client, but you can log GET variables. See squid.conf.

For 2, can you be a bit more specific in what you want to log where when.
It is quite possible what you are looking for is possible with only small
modifications to your application.

> The solution to my problem as I see it would be to have Squid log whatever it
> can, have the application log whatever it can, and then de-duplicate those
> results, and where Squid reports a cache hit use the web server information
> from the original request. The problem is that it will be very hard to do
> this de-duplication in a decent way...

Merging of related but different logs is never fun.

Regards
Henrik
Received on Fri Nov 05 2004 - 16:48:28 MST

This archive was generated by hypermail pre-2.1.9 : Wed Dec 01 2004 - 12:00:01 MST