Update traefik.yml

log failed http requests only in the default conf. Reduces log size for beginners that have not yet configured logrotation.
This commit is contained in:
LRVT 2023-02-19 13:54:37 +01:00 committed by GitHub
parent 086c76154d
commit 82e4ee6d93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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