sshportal
sshportal copied to clipboard
Feature - Log retention
Hello,
I often run into disk space issues caused by the size of logs. Would it possible to setup a retention time for them ?
For now, I'm using a manual command in the container to clean logs older than 30 days.
find /app/log -mtime +30 -delete
But something like an environment variable LOG_RETENTION_DAYS=n
to specify the log retention duration in days (seems a good time unit to me) would allow an 'autoremove' of older logs.
What do you think ?
Thanks !