In this video I discuss a possible issue using PM2 to keep your server running in the background. PM2 loves to keep logs and can eat up a lot of storage space. This command will prevent it from happening to you.
Instructions:
STOP pm2 from running your Foundry server
Command: pm2 stop "foundry" (without quotes and with whatever you named it in the state command)
pm2 install pm2-logrotate
My settings, but feel free to change to suit your needs:
pm2 set pm2-logrotate:max_size 50M
pm2 set pm2-logrotate:retain 10
pm2 set pm2-logrotate:compress true