Search squid archive

RE: leaving each log file per domain at squid

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxx] 
Sent: Monday, October 23, 2006 5:31 AM
To: Monty Ree
Cc: squid-users@xxxxxxxxxxxxxxx
Subject: Re:  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


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux