I have a few virtualhosts set up on my machine, and the server keeps crashing because of the disk space being too full. I've checked out and it seems that one of my virtual host log folder is 2Gb. In it there are hundreds of log files, either gzipped or not.
My question is, is there an easy way to delete all that without deleting the current logs being used? Also, while at it, is there a way to tell the server to keep say 5 logs files at all time and delete the others?
Server is Debian.
thanks for your help