From 636a07908180fed6a21598ad48a792936ca84d6f Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Thu, 12 Feb 2026 19:38:41 +0000 Subject: [PATCH] Add JA4 fingerprint to logging --- cookbooks/tile/templates/default/apache.erb | 2 +- cookbooks/web/templates/default/apache.frontend.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cookbooks/tile/templates/default/apache.erb b/cookbooks/tile/templates/default/apache.erb index f8cee732f..4be1c807c 100644 --- a/cookbooks/tile/templates/default/apache.erb +++ b/cookbooks/tile/templates/default/apache.erb @@ -59,7 +59,7 @@ <% end -%> # Setup logging - 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\" \"%{client-geo-conn-type}i\" \"%{cdn-region}i\" \"%{cdn-pop}i\"" combined_fastly_tile_custom + 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\" \"%{client-geo-conn-type}i\" \"%{cdn-region}i\" \"%{cdn-pop}i\" \"%{X-TLS-JA4}i\"" combined_fastly_tile_custom CustomLog /var/log/apache2/access.log combined_fastly_tile_custom ErrorLog /var/log/apache2/error.log diff --git a/cookbooks/web/templates/default/apache.frontend.erb b/cookbooks/web/templates/default/apache.frontend.erb index e21cf2d8a..0e180045e 100644 --- a/cookbooks/web/templates/default/apache.frontend.erb +++ b/cookbooks/web/templates/default/apache.frontend.erb @@ -7,7 +7,7 @@ SetEnvIfNoCase Authorization "^Basic " AUTH_METHOD=basic SetEnvIfNoCase Authorization "^OAuth " AUTH_METHOD=oauth1 SetEnvIfNoCase Authorization "^Bearer " AUTH_METHOD=oauth2 SetEnvIfExpr "%{QUERY_STRING} =~ /(^|&)oauth_signature=/" AUTH_METHOD=oauth1 -LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\" %Dus %{UNIQUE_ID}e %{SSL_PROTOCOL}x %{SSL_CIPHER}x %{AUTH_METHOD}e" combined_with_time +LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\" %Dus %{UNIQUE_ID}e %{SSL_PROTOCOL}x %{SSL_CIPHER}x %{AUTH_METHOD}e \"%{X-TLS-JA4}i\"" combined_with_time CustomLog /var/log/apache2/access.log combined_with_time ErrorLog /var/log/apache2/error.log -- 2.39.5