sshportal icon indicating copy to clipboard operation
sshportal copied to clipboard

Feature - Log retention

Open camo-f opened this issue 4 years ago • 0 comments

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 !

camo-f avatar Jul 22 '20 08:07 camo-f