Our VPS is constantly under port scanning attack, which is ballooning our logs to exceed 100GB and filling up the disk, leading to website crashes. We had to manually clear the kern.log and ufw.log files to get the website back online.
Could you please provide guidance on how to prevent this or set up automatic (cron/script) log rotation/deletion to avoid future disk space issues?
Thank you.