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

From: Erwin Wessels <erwin@dont-contact.us>
Date: Sat, 06 Nov 2004 17:38:22 +0100

Henrik Nordstrom wrote:

> On Sat, 6 Nov 2004, Erwin Wessels wrote:
>
>> The product is a multi-source search engine - what we want to log is
>> which source was used (to start with). The application can certainly
>> log this, but there is no clean way to get this in the original log
>> files (an IMO 'unclean' example is using an image in the result page
>> with the required info in it's query string.) Maybe I am forced to go
>> with the unclean solution and use run-time logfile parsing to feed
>> the stuff back in a database...
>
>
> If you add the required information in a custom response header then
> you can make Squid log this with the request in access.log. Either by
> "log_mime_hdrs", or by using the custom log formats (will be available
> in Squid-3.0. Patch to 2.5)

Interesting... If this item then later is requested again and served
from cache, will the custom header show up in the logs again?

> It may be possible to use header_access to filter out the custom
> header before it is sent to the client but I am not sure (if you are
> unlucky it also filters out the header before access.log..).

Worth checking out....

Thanks!,

-Erwin
Received on Sat Nov 06 2004 - 09:38:47 MST

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