Search squid archive

Logformat tag for a specific ACL

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

 



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 



_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users





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

  Powered by Linux