Error: configuration param 'logs.file.maxsize' not declared in the schema

Hi,

I am new at n8n and I’m trying to configure it with json file. My json file is like down below. I am using
Version: 0.228.2 and npm.

{
    "logs":{
        "level" : "info",
        "output": "file",
        "file":{
            "location":"C:/Users/Mert/Desktop/N8N/logs/n8n.log",
            "maxsize":50,
            "maxcount":60
        }
    }
}

When I try to start n8n with n8n start command with npm, I get an error like down below.

Loading config overwrites [ ‘my-config.json’ ]
Error: configuration param ‘logs.file.maxsize’ not declared in the schema
configuration param ‘logs.file.maxcount’ not declared in the schema

I tried to replace logs to log in json file but after that, level, output and file keys are become not declared too. I use the link below while configuring.

Thanks.

Hey @Mert_Mahanoglu,

Welcome to the community :cake:

I have not tested it but I have had a quick look in the config schema and it looks like you might be after logs.file.fileCountMax and logs.file.fileSizeMax

You can find the schema here: n8n/schema.ts at master · n8n-io/n8n · GitHub

3 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.