Yes,
see for the logformat directive,
for a quick example you want to achieve;
logformat firstdomain %>a %ui %un [%tl] "%rm %ru HTTP/%rv" %Hs %<st
"%{Referer}>h" "%{User-Agent}>h %{Cookie}>h" %Ss:%Sh
acl logunav dstdomain firstdomain
logformat seconddomain %>a %ui %un [%tl] "%rm %ru HTTP/%rv" %Hs %<st
"%{Referer}>h" "%{User-Agent}>h %{Cookie}>h" %Ss:%Sh
acl logunav dstdomain seconddomain
Note, the Referer, User-Agent and Cookie headers are from my custom
configuration, so they won't be needed to achive your goal.
Emilio C.
Editor FoodSQM.com escribió:
> Hello,
>
> I was just wondering if there may be an easier way to do this.
>
> I am now, just recently, running multiple domains with squid as the
> front end
> redirecting to an Apache backend for some sites and a Zope backend for
> others. Its working well.
>
> For the Zope sites I have a written a squid-logsplit script so that I can
> split the one squid log and run AWStats on the results.
>
> I did this because a quick search on Google didn't return any results
> for multiple squid logs and I knew I could slap out a workable script
> in about 20 minutes
> to split up the squid log. Now that I have a little time to actually
> research the issue, the question is:
>
> Does squid have a way to logging per domain? I can't find it if there is.
>
> Requests to http://domainONE.com --> logged in
> squid-log.domainONE.com.log
> Requests to http://domainTWO.com --> logged in
> squid-log.domainTWO.com.log
>
> Or is this the right strategy? With the apache domains I am just
> parsing the apache logs
> for AWStats but with Zope that's not really doable.
>
> Now that I have been using squid for a couple of years I should
> probably learn what the
> heck I'm doing. ;-)
>
Received on Mon Feb 05 2007 - 04:16:32 MST
This archive was generated by hypermail pre-2.1.9 : Thu Mar 01 2007 - 12:00:01 MST