Hi everyone,
I’m considering a minimal and efficient logging setup for self-hosted n8n and wanted to see if anyone else is taking a similar approach or has feedback.
Here’s what I’m thinking:
- Only log errors and serious warnings (using
N8N_LOG_LEVEL=error
orwarn
) to avoid unnecessary noise. - Limit log retention to 15–30 days so logs don’t pile up and take too much space.
- Prioritize logs related to workflow executions (start/end) and connection errors or key node failures.
- Use file-based logging (
N8N_LOG_OUTPUT=file
) for easier sharing and archiving. - Example environment variables:
N8N_LOG_LEVEL=error
N8N_LOG_OUTPUT=file
N8N_LOG_FILE_COUNT_MAX=15
N8N_LOG_FILE_SIZE_MAX=16
Is anyone else using a similar configuration? Any tips or caveats I should be aware of?
Thanks!