access.log

Taking care of your Linux box.

access.log

Postby jathol » Tue Feb 24, 2004 2:44 pm

hi,

how can i limit access.log.

i do not want squid to log some sites.. company site.. etc

how can i do that

thanks

usman
jathol
Cadet
 
Posts: 1
Joined: Wed Jan 21, 2004 2:23 pm
Location: Lahore

Re: access.log

Postby lambda » Wed Feb 25, 2004 10:54 am

jathol wrote:i do not want squid to log some sites.. company site.. etc

how can i do that


you can't.
lambda
Major General
 
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Website: http://www.hungry.com/~fn/
Location: Lahore

Re:

Postby LinuxFreaK » Thu Feb 26, 2004 10:43 pm

Dear jathol,
Salam,

acl Local dst 192.168.0.0/24
acl QUERY url_path_regex .example.com ?
no_cache deny QUERY


Best Regards.
Farrukh Ahmed
LinuxFreaK
Site Admin
 
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
ICQ: 82075802
Website: http://www.linuxpakistan.net/wiki/index.php?pagename=LinuxFreak
WLM: f4fahmed@hotmail.com
Yahoo Messenger: f4fahmed@yahoo.com
AOL: linuxpakistan@aol.com
Location: Karachi

Re:

Postby lambda » Sun Feb 29, 2004 3:34 pm

LinuxFreaK wrote:acl Local dst 192.168.0.0/24
acl QUERY url_path_regex .example.com ?
no_cache deny QUERY


that doesn't stop it from logging the queries, does it?
lambda
Major General
 
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Website: http://www.hungry.com/~fn/
Location: Lahore

Re:

Postby LinuxFreaK » Sun Feb 29, 2004 10:03 pm

Dear lambda,
Salam,

lambda wrote:
LinuxFreaK wrote:acl Local dst 192.168.0.0/24
acl QUERY url_path_regex .example.com ?
no_cache deny QUERY

that doesn't stop it from logging the queries, does it?


There is little problem its supposed to be

acl QUERY dst 192.168.0.0/24
acl QUERY url_path_regex .example.com ?
no_cache deny QUERY


From http://squid.visolve.com/squid24s1/contents.htm

Tag Name no_cache
Usage no_cache deny|allow aclname

Description
A list of ACL elements, which, if matched, cause the reply to be immediately, removed from the cache. In other words, use this to force certain objects to never be cached.

Default acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
The word 'DENY' is to indicate the ACL names, which should NOT be cached


Example
acl DENYPAGE urlpath_regex Servlet
no_cache deny DENYPAGE
The DENYPAGE acl assures that the url containing Servlet will NOT be cached.

Caution
It is recommended to use this directive effectively.


Best Regards.
Farrukh Ahmed
LinuxFreaK
Site Admin
 
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
ICQ: 82075802
Website: http://www.linuxpakistan.net/wiki/index.php?pagename=LinuxFreak
WLM: f4fahmed@hotmail.com
Yahoo Messenger: f4fahmed@yahoo.com
AOL: linuxpakistan@aol.com
Location: Karachi

Re:

Postby lambda » Tue Mar 02, 2004 1:06 pm

i fail to understand why you pasted that. i see nothing in that voluminous cut and paste job that answers my question (or the question posed by the original poster).

i stand by what i said up above -- you can't stop squid from logging queries.
lambda
Major General
 
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Website: http://www.hungry.com/~fn/
Location: Lahore


Return to “%s” Administration

Who is online

Users browsing this forum: No registered users and 1 guest

cron