From b5851713a235a5123059211a814ef45103a4877e Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Wed, 3 Sep 2025 00:04:20 +0100 Subject: [PATCH] tile: Use apache CustomLog to log special fastly request headers --- cookbooks/tile/templates/default/apache.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cookbooks/tile/templates/default/apache.erb b/cookbooks/tile/templates/default/apache.erb index 928421231..9c94130e2 100644 --- a/cookbooks/tile/templates/default/apache.erb +++ b/cookbooks/tile/templates/default/apache.erb @@ -59,8 +59,8 @@ <% end -%> # Setup logging - LogFormat "%a %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined_with_remoteip - CustomLog /var/log/apache2/access.log combined_with_remoteip + LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\" %Dus \"%{client-geo-continent}i\" \"%{client-geo-country}i\" \"%{client-geo-proxy-description}i\" \"%{client-geo-proxy-type}i\" \"%{geo.proxy_type}i\" \"%{client-geo-conn-type}i\"" combined_fastly_tile_custom + CustomLog /var/log/apache2/access.log combined_fastly_tile_custom ErrorLog /var/log/apache2/error.log BufferedLogs on -- 2.39.5