From bb3a807869fe79c62e88d41fe52e237e08c03b44 Mon Sep 17 00:00:00 2001 From: mercury Date: Mon, 11 Nov 2024 14:09:27 +0400 Subject: [PATCH] stream access log --- config/upstream.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/upstream.conf b/config/upstream.conf index b9c80c9..d5f9a4a 100644 --- a/config/upstream.conf +++ b/config/upstream.conf @@ -11,6 +11,10 @@ events { } stream { + log_format basic '$remote_addr [$time_local] ' + '$protocol $status $bytes_sent $bytes_received'; + access_log /logs/upstream_access basic; + upstream other { server ng:443; }