From 93f4bd497161991ac48f75d23d1c8caec51e93c3 Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Wed, 25 Sep 2013 11:29:49 +0100 Subject: [PATCH] squid: add custom log for etag analysis --- cookbooks/squid/templates/default/squid.conf.erb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cookbooks/squid/templates/default/squid.conf.erb b/cookbooks/squid/templates/default/squid.conf.erb index 275f28206..e615f887b 100644 --- a/cookbooks/squid/templates/default/squid.conf.erb +++ b/cookbooks/squid/templates/default/squid.conf.erb @@ -80,6 +80,10 @@ http_access deny purge forwarded_for on +#Loggin used for analysis +logformat zerelog %ts.%03tu %rp "%{Etag}a "%{User-Agent}>h" +access_log /var/log/squid/zere.log zerelog + access_log <%= node[:squid][:access_log] %> cache_log /var/log/squid/cache.log cache_store_log none -- 2.39.5