From 4c0ef53a1ae4be69287ea208eb7efe2a4ad4af0c Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sun, 10 Mar 2024 13:42:46 +0000 Subject: [PATCH] Define an extended log format for apachae requests Adds the request time and SSL details to the standard combined format. --- cookbooks/apache/templates/default/httpd.conf.erb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cookbooks/apache/templates/default/httpd.conf.erb b/cookbooks/apache/templates/default/httpd.conf.erb index 62533efae..3f78187f8 100644 --- a/cookbooks/apache/templates/default/httpd.conf.erb +++ b/cookbooks/apache/templates/default/httpd.conf.erb @@ -63,3 +63,6 @@ AddType application/x-xz .xz # Configure logging BufferedLogs <%= node[:apache][:buffered_logs] ? "On" : "Off" %> + +# Define an extended log format that includes request time and SSL details +LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\" %Dus %{SSL_PROTOCOL}x %{SSL_CIPHER}x" combined_extended -- 2.45.1