From 4007484c54b07d1f33a054d3c020a12c54dd7e42 Mon Sep 17 00:00:00 2001 From: Sam Date: Tue, 16 Jun 2015 16:43:43 +1000 Subject: [PATCH] also log user agent in NGINX --- config/nginx.sample.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/nginx.sample.conf b/config/nginx.sample.conf index f81265a7b..ec8199163 100644 --- a/config/nginx.sample.conf +++ b/config/nginx.sample.conf @@ -25,7 +25,7 @@ map $http_x_forwarded_proto $thescheme { https https; } -log_format log_discourse '[$time_local] $remote_addr $request $sent_http_x_discourse_route $upstream_response_time $request_time'; +log_format log_discourse '[$time_local] $remote_addr "$request" "$http_user_agent" "$sent_http_x_discourse_route" $upstream_response_time $request_time'; server {