Search squid archive

Re: problem with access_log

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

 



On Sat, Mar 8, 2008 at 3:31 AM, Amos Jeffries <squid3@xxxxxxxxxxxxx> wrote:
> Cassiano Martin wrote:
>  > Are you looking at cache.log or access.log?
>
>  Looks like store.log.
>
>  Amos
>
>  >
>  > Looks like you're in the wrong file.
>  >> Ramashish Baranwal escreveu:
>  >>> Hi,
>  >>>
>  >>> I am trying to prevent logging of certain urls using acls on
>  >>> access_log. The corresponding part of my squid.conf looks like-
>  >>>
>  >>> acl test_url url_regex .*test.*
>  >>>
>  >>> # don't log test_url
>  >>> access_log none test_url
>  >>>
>  >>> # log others
>  >>> access_log <log-file-path> squid
>  >>>
>  >>> Squid however, is not honoring the acl. It logs everything. The log
>  >>> for request
>  >>>
>  >>> http://netdev.com/test/
>  >>>
>  >>> looks like-
>  >>>
>  >>> 1204882748.408 RELEASE -1 FFFFFFFF 15A550F13DEC5BEE462C4DDCA8645838
>  >>> 403 1204882748         0 1204882748 text/html 1091/1091 GET
>  >>> http://netdev.com/test/
>  >>>
>  >>> What am I missing here?
>  >>> My squid version is squid/2.6.STABLE16.

Sorry for my mistake and late reply.
By mistake I posted the log from store.log. Here is the access.log entry:

1205083482.075    923 127.0.0.1 TCP_MISS/200 2287 GET
http://localhost:9999/test/ - DIRECT/64.233.167.99 text/html

This time I have setup my squid at localhost, and am using a
redirector to fetch an arbitrary url for every request (so that all
requests are served).

The regex is most probably correctly setup because when I add

http_access deny test_url

to my squid.conf, the requests get denied. They however again appear
in access.log

1205083593.768      0 127.0.0.1 TCP_DENIED/403 1413 GET
http://localhost:9999/test/ - NONE/- text/html

I am still not able to find out how to prevent test_url from appearing
in access.log. Any help would be greatly appreciated.

Thanks,
Ram

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

  Powered by Linux