[squid-users] Logformat tag for a specific ACL
FredB
fredbmail at free.fr
Wed May 27 10:04:12 UTC 2015
Hello,
There is a way to "tag" an ACL in access.log ?
acl test url_regex "/tmp/myfile"
logformat fred %>a %[ui %[un [%tl] "%rm %ru HTTP/%rv" %>Hs %<st %Ss:%Sh "%{User-Agent}>h"
access_log daemon:/var/log/squid/access.log fred
If I put something at the end
logformat fred %>a %[ui %[un [%tl] "%rm %ru HTTP/%rv" %>Hs %<st %Ss:%Sh "%{User-Agent}>h" test
The end of line contain test, can I do this for an Acl only ? And let the usual logformat without "test" at the end ?
Regards
Fred
Something like:
10.1.1.1 - fred [27/May/2015:12:00:19 +0200] "CONNECT zimbra.free.fr:443 HTTP/1.0" 200 4724 TCP_TUNNEL:HIER_DIRECT "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Firefox/38.0"
10.1.1.1 - fred [27/May/2015:12:00:21 +0200] "CONNECT testsite.fr:443 HTTP/1.0" 200 4724 TCP_TUNNEL:HIER_DIRECT "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Firefox/38.0" test
More information about the squid-users
mailing list