Since I got my servers from BurstNet/Nocster, I have had problems with one of them having the Apache domain logs running away constantly. I have had to manually go in and delete those files when they would start pushing the /usr volume up over 85 percent. I have to do this about every month.

So I looked into the logrotate program and found that although it does take care of many of the other scripts on the server, for some reason the domain logs were excluded.

What needs to be done is to merely add a file containing this script into the directory /etc/logrotate.d:

/usr/local/apache/domlogs/*.com /usr/local/apache/domlogs/*.com-bytes_log {
daily
rotate 5
compress
}

And that does it.

If you have a server with high traffic, you may want to check that domlogs directory to see if the files are being rotated out.

Rich Z.