From 82e4ee6d9303d648db4830277d3f55cb2e0f973e Mon Sep 17 00:00:00 2001 From: LRVT <21357789+l4rm4nd@users.noreply.github.com> Date: Sun, 19 Feb 2023 13:54:37 +0100 Subject: [PATCH] Update traefik.yml log failed http requests only in the default conf. Reduces log size for beginners that have not yet configured logrotation. --- traefik/traefik.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/traefik/traefik.yml b/traefik/traefik.yml index 5595399..ed4f64e 100644 --- a/traefik/traefik.yml +++ b/traefik/traefik.yml @@ -16,10 +16,10 @@ log: accessLog: filePath: "/logs/traefik.log" format: json - #filters: - # statusCodes: - # - "200" - # - "300-302" + filters: + statusCodes: + # - "200" # log successful http requests + - "400-599" # log failed http requests #retryAttempts: true #minDuration: "10ms" # collect logs as in-memory buffer before writing into log file