Re: [squid-users] split access log up for different sites?

From: Anton Melser <melser.anton@dont-contact.us>
Date: Fri, 6 Jul 2007 08:58:43 +0200

On 06/07/07, Adrian Chadd <adrian@creative.net.au> wrote:
> On Thu, Jul 05, 2007, Anton Melser wrote:
> > Hi,
> > I had a look but couldn't see any way to split up a log for different
> > sites being reverse proxied. Is this possible?
>
> Squid-2.6 introduced the ability to use ACLs and multiple access log
> lines to determine which log gets which requests.

Thanks for that. It's not entirely clear from the docs... So do I need
something like:

acl sitea dstdomain my.site.com

logformat sitea %>a %ui %un [%tl] "%rm %ru HTTP/%rv" %Hs %<st
"%{Referer}>h" "%{User-Agent}>h" %Ss:%Sh
access_log /var/log/squid/combined.log sitea

This doesn't seem possible from the docs
(http://www.visolve.com/squid/squid30/logs.php) but the docs are for
squid 3!
Thanks
Anton
Received on Mon Jul 09 2007 - 01:13:48 MDT

This archive was generated by hypermail pre-2.1.9 : Wed Aug 01 2007 - 12:00:03 MDT