See logs for past one months

Hello, community!

I want to see workflow execution logs for past one month, so what is the way for this. for this time i can see only one week logs.

please, help me!

Information on your n8n setup

  • n8n version: 1.107.4
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system: linux

Start/Starter: 7 days or 2,500 executions (whichever comes first)

Pro/Power: 30 days or 25,000 executions

Enterprise: Unlimited time, up to 50,000 executions If you are on a Start or Starter plan, you will only see up to 7 days of logs.

Or:

On self-hosted n8n, execution retention is controlled by environment variables:

EXECUTIONS_DATA_MAX_AGE (in hours, default: 336 = 14 days)

EXECUTIONS_DATA_PRUNE_MAX_COUNT (default: 10,000) You need to set EXECUTIONS_DATA_MAX_AGE=720 (for 30 days) and ensure EXECUTIONS_DATA_PRUNE_MAX_COUNT is high enough (or set to 0 for unlimited) to retain a month of logs. If these are not set, or if the count limit is reached first, older logs will be pruned.

@Parintele_Damaskin
i can not set any veriables so can i see??

It means you are on a cloud version, right?

Then the only way is to upgrade.(and I am not sure either if you upgrade now, the rest of executions will appear in list.)

No, I have self-hosted.

Ok, how did you installed?

Npm , Docker?

Couse you will need to set env variables.

docker..

But, env variables set today. My concern is want to see 16 Oct logs. This is possible??

Age: Controlled by EXECUTIONS_DATA_MAX_AGE (in hours). The default is 336 hours (14 days), but if you see only 7 days, it may be set to 168 hours.

Count: Controlled by EXECUTIONS_DATA_PRUNE_MAX_COUNT. The default is 10,000 executions. If this limit is reached first, older executions are pruned even if they are not yet 7 days old.

To answer, then NO, from my experience.

Simple answer me, Can I see 16 Oct logs?

1 Like

If have already been pruned in your Docker-based n8n instance, you cannot view them anymore. Pruning permanently deletes execution and log data.

Simple answer : NO

1 Like

means, if i can not set, so i can see, right??

Pruning is enabled by default (EXECUTIONS_DATA_PRUNE=true).

The maximum age for executions before they are deleted is 336 hours (14 days) (EXECUTIONS_DATA_MAX_AGE=336).

The maximum number of executions to keep is 10,000 (EXECUTIONS_DATA_PRUNE_MAX_COUNT=10000).

This means, by default, n8n will keep execution logs for up to 14 days or 10,000 executions, whichever limit is reached first. After that, older logs are pruned (deleted) and cannot be viewed or recovere.

So you know better how many executions counts you have or days.

If your date 16 , if is included in the 10k executions or not.