From: Tom Hughes Date: Fri, 14 Aug 2015 15:43:15 +0000 (+0100) Subject: Fix log regex in API statistics generator X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/b618b15498709b3621b7f13530d8e4a8290565d3?hp=dc6032dafa208c927c06e301c12a95255cc49b43 Fix log regex in API statistics generator --- diff --git a/cookbooks/web/templates/default/api-statistics.erb b/cookbooks/web/templates/default/api-statistics.erb index af577f3e9..b4c417447 100644 --- a/cookbooks/web/templates/default/api-statistics.erb +++ b/cookbooks/web/templates/default/api-statistics.erb @@ -19,7 +19,7 @@ def categorise_uri(line) end end -parser = ApacheLogRegex.new('%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\" %Ts') +parser = ApacheLogRegex.new('%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\" %Dus %{UNIQUE_ID}e %{SSL_PROTOCOL}x %{SSL_CIPHER}x') last_write = Time.now statistics = { :status => Hash.new(0), :uri => Hash.new(0) }