Skip to content

Commit d8f485f

Browse files
committed
fix(logs): further reduce log volume and enhance access log filtering
- Changed log level from INFO to WARN to minimize log output. - Updated access log configuration to only log errors (4xx/5xx) and added filters for retry attempts and slow requests (>1s).
1 parent 67825f3 commit d8f485f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scripts/traefik/traefik.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,19 @@ api:
1919
# -----------------------------------------------------------------------------
2020
# Logging
2121
# -----------------------------------------------------------------------------
22+
# Log to stdout (Docker handles rotation via json-file driver)
2223
log:
23-
level: INFO
24+
level: WARN # Reduced from INFO to reduce log volume
2425
format: json
2526

27+
# Access logs - only log errors (4xx/5xx) to reduce volume
2628
accessLog:
2729
format: json
2830
filters:
2931
statusCodes:
3032
- "400-599"
33+
retryAttempts: true # Only log retries
34+
minDuration: "1s" # Only log slow requests (>1s)
3135

3236
# -----------------------------------------------------------------------------
3337
# Entrypoints

0 commit comments

Comments
 (0)