Server log retention

I just noticed that on our production server the ~/logs/ folder is starting to take up quite a bit of space. It looks like it logs every time there is a _beforeSave or _afterSave trigger - of which we have a lot.

Does Parse automatically delete logs after some time or do I have to manage log retention manually?

Any thoughts on best practice for this?

Depending on your setup a crow job to delete your log.

Actually the log rotated built in to parse server supports deleting files, it’s just not implemented. Perhaps we can add a server option like maxLogFiles and default it to a week or something. What do you think?

1 Like

That would actually be really good. Feels nicer than a cron job. And I think a week sounds like a good default too.

1 Like