]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/web/templates/default/api-statistics.erb
Fix log regex in API statistics generator
[chef.git] / cookbooks / web / templates / default / api-statistics.erb
index af577f3e92fa64b8f262bcbfdd442778567cdd05..b4c4174476f48824cac2f3d6ca827a0d255ef364 100644 (file)
@@ -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) }