I’m trying to capture error logs from n8n running in Docker but having no success. I’ve tried multiple logging configurations but can’t get error logs to appear in:
docker logs -f n8n.
Environment:
n8n version: 1.78.1
Running in Docker (docker.n8n.io/n8nio/n8n:1.78.1)
Ubuntu 22.04.5 LTS
Current Configuration:
environment:
- N8N_LOG_LEVEL=debug
- N8N_LOG_OUTPUT=console
What I’ve Tried:
Every suggestion I can find in the documentation and in the fourm.
Verified errors are occurring by deliberately causing them in workflows
Confirmed the container is running and logs are accessible
Expected Behavior:
When a workflow error occurs (e.g., a ReferenceError from invalid JavaScript), this should appear in the Docker logs accessible via:
docker logs -f n8n.
Actual Behavior:
Startup logs appear normally
Regular workflow execution logs do not appear
Error do not appear
To confirm - I only ever get the basic startup logs. Nothing else.
I can do this:
docker compose exec n8n sh
~ $ ls -la /home/node/.n8n/
drwxr-xr-x 6 node node 4096 Mar 13 21:19 .
drwxr-sr-x 1 node node 4096 Mar 13 06:11 …
drwxr-xr-x 2 node node 4096 Feb 19 03:36 binaryData
-rwxr-xr-x 1 node node 54 Feb 19 03:36 config
-rw-r–r-- 1 node node 0 Mar 13 09:31 crash.journal
drwxr-xr-x 2 node node 4096 Feb 19 03:37 git
-rw-r–r-- 1 node node 10512585 Mar 13 21:19 n8nEventLog-1.log
-rw-r–r-- 1 node node 10504823 Mar 13 20:49 n8nEventLog-2.log
-rw-r–r-- 1 node node 10491074 Mar 13 20:19 n8nEventLog-3.log
-rw-r–r-- 1 node node 5802630 Mar 13 21:35 n8nEventLog.log
drwxr-xr-x 3 node node 4096 Feb 19 03:51 nodes
drwxr-xr-x 2 node node 4096 Feb 19 03:37 ssh
And so I see logs inside the container.
Question:
Where are error logs supposed to appear when running n8n in Docker?
Is there additional configuration needed to get error logs to appear in Docker logs?
Are error logs being sent somewhere else by default?
Any guidance would be greatly appreciated as this is blocking our ability to monitor n8n errors in our logging infrastructure.