Log request ID for web requests
authorTom Hughes <tom@compton.nu>
Fri, 17 Jul 2015 23:20:04 +0000 (00:20 +0100)
committerTom Hughes <tom@compton.nu>
Fri, 17 Jul 2015 23:20:04 +0000 (00:20 +0100)
cookbooks/web/templates/default/apache.frontend.erb

index 6525d1abe6a4bdb56594e824308239864ef6c272..650b3074a9cd27c1fca8cec197f12ee65a87ade7 100644 (file)
@@ -20,7 +20,7 @@
   #
   # Setup logging
   #
-  LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\" %Ts %{SSL_PROTOCOL}x %{SSL_CIPHER}x" combined_with_time
+  LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\" %Ts %{UNIQUE_ID}e %{SSL_PROTOCOL}x %{SSL_CIPHER}x" combined_with_time
   CustomLog /var/log/apache2/access.log combined_with_time
   ErrorLog /var/log/apache2/error.log