The contents of /var/log on my system are now taking up 80% of my hard drive and it's causing a lot of problems.
So I need to purge all the old contents but for some reason
sudo rm -rf "*.gz" does not remove those old files. Also weirdly enough I'm not 100% sure that all the logfiles I can see actually amount to the huge disk usage I'm dealing with. Why would the Disk Usage Analysis tool show over 600GB used in /var/log when I can't find that much usage with ls?
Also, going forward I'd like to make sure this doesn't happen any more so I want to change the log file retention or rotation policies (however they're named).
du command shows me that the syslog.1 takes up 597GB. How do I change the way that whatever makes that log works to avoid this?
Edit2: I think this link shows the root cause but I don't know what to do about it. https://email@example.com/msg386959.html