RE: [squid-users] leaving each log file per domain at squid

From: Nguyen, Khanh, INFOT <nguyenkt@dont-contact.us>
Date: Mon, 23 Oct 2006 11:00:57 -0400

Henrik,

Will it impact performance of the cache server if there are many acls? What is your recommendation if my cache server has 100+ domains and I want each domain has its own log? Should I modify the code to do that?

Regards,
Khanh

-----Original Message-----
From: Henrik Nordstrom [mailto:henrik@henriknordstrom.net]
Sent: Monday, October 23, 2006 5:31 AM
To: Monty Ree
Cc: squid-users@squid-cache.org
Subject: Re: [squid-users] leaving each log file per domain at squid

mån 2006-10-23 klockan 07:08 +0000 skrev Monty Ree:
> > > I have setup squid 2.6 for reverse proxy about several domains.
> > > So I would like to leave each log messages to separate files per
> > > cache_peer_domain.
> > > Is there any method to do this?
> >
> >Yes. See access_log and dstdomain acl.
> >
>
> Thanks for your kind answer.
> If I have tow peer domains(www.abc.com, www.xyz.com),
> Can you give me an example to leave a log about www.abc.com?

Here is one way:

acl abc dstdomain www.abc.com
acl xyz dstdomain www.xyz.com

access_log /path/to/xyz.log squid xyz
access_log none xyz
access_log /path/to/abc.log squid abc
access_log none abc
access_log /path/to/access.log squid

Regards
Henrik
Received on Mon Oct 23 2006 - 09:01:25 MDT

This archive was generated by hypermail pre-2.1.9 : Wed Nov 01 2006 - 12:00:04 MST