Is there a way to set NC to delete logs older then X days?

On one of my NC servers that I maintain the logs file [NC-DIR]/data/nextcloud.log has reached to almost 6GB. Is there a way to set Nextcloud to automatically delete logs older than X days?

You can try using the log_rotate_size, described here.

1 Like

Thanks. I’ll have a look at that.