RE: [squid-users] Filtering log data

From: Henrik Nordstrom <henrik@dont-contact.us>
Date: Sat, 04 Mar 2006 03:36:31 +0100

fre 2006-03-03 klockan 17:26 +0100 skrev David:

> acl logHTML rep_mime_type text/html
> logformat combined <standard combined stuff here>
> access_log /var/log/squid/access.log combined logHTML
>
> But I get an error message "acl not defined". Any idea what might be wrong?

Looks fine to me, and my Squid+custom_log does not complain. Are you
sure the lines are in the above order?

But just tested this here and rep_mime_type did not work in access_log,
never matched anything. This has been corrected in the CVS branch and
should get publised as a new patch in a few hours. Please note that the
updated patch is relative to current Squid-2.5 (what will become
2.5.STABLE13) and won't apply to 2.5.STABLE12.

The fix to the old patch is simply to add the following line

        http->acl_checklist->reply = http->al.reply;

just before the following line in client_side.c:

        if (!Config.accessList.log || aclCheckFast(Config.accessList.log, http->acl_checklist)) {

Regards
Henrik

Received on Fri Mar 03 2006 - 19:36:36 MST

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