On Mon, 20 Jul 2009 17:08:20 -0600, Jim Whiteacre <jwhiteacre@xxxxxxxxxxx> wrote: > When you say it is easy to add this to the re-writers, do you mean have the > re-writer have its own log or have it log to the access log itself? I do. > > What I am looking for is a single log entry that contain the actual url the > user went to along with the byte counts for that request. The access.log you currently have contains the URL the _user_ went to and believes its talking to. The URL _Squid_ goes to (sometimes) to fetch the data is the re-writer result. Looking for the patch I see it actually was back-ported to 2.7 mixed in with one of Adrians huge code dumps. Just not documented there. Amos > > Jim > >> -----Original Message----- >> From: Amos Jeffries [mailto:squid3@xxxxxxxxxxxxx] >> Sent: Monday, July 20, 2009 5:04 PM >> To: Jim Whiteacre >> Cc: squid-users@xxxxxxxxxxxxxxx >> Subject: Re: url_rewrite_program and the access.log >> >> On Mon, 20 Jul 2009 12:32:32 -0600, Jim Whiteacre >> <jwhiteacre@xxxxxxxxxxx> >> wrote: >> > All >> > >> > Is it possible to have the url returned by the url_rewrite_program >> added >> to >> > the access.log? Currently I am using the %ru to get the originally >> > requested url, however if the url_rewrite_program changes the url >> that >> new >> > url is not written to the access.log. >> > >> > >> > Jim >> >> Squid-2.HEAD has the %rU tag. >> This has not yet been ported to any of the stable releases. >> >> It's trivial to make most re-writers log the changes they make though. >> >> Amos