We have certain system domains which we would like to keep access_logs for indefinitely or at least rotate them on a multi-month schedule with older months gzipped.
I cannot figure out how to do do this or work around this in CPanel.
We've had to tell CPanel to keep ALL domain logs currently due to not knowing how to accomplish this. This means that everyone's access_log files have been growing and growing. This, of course, slows down stats processing and the like, as well as increasing disk space exponentially.
If we have userA, userB and userC, can someone give some pointers on how to accomplish the following:
userA = normal customer, rotate logs monthly, don't keep archives
userB = system account, rotate logs monthly and keep a gzip archive either in the home directory or system log directory
userC = system account, allow log file to grow until we process it manually
At the very least, I would like to do the above for userA and userB.
Help!?!?!?!?
I cannot figure out how to do do this or work around this in CPanel.
We've had to tell CPanel to keep ALL domain logs currently due to not knowing how to accomplish this. This means that everyone's access_log files have been growing and growing. This, of course, slows down stats processing and the like, as well as increasing disk space exponentially.
If we have userA, userB and userC, can someone give some pointers on how to accomplish the following:
userA = normal customer, rotate logs monthly, don't keep archives
userB = system account, rotate logs monthly and keep a gzip archive either in the home directory or system log directory
userC = system account, allow log file to grow until we process it manually
At the very least, I would like to do the above for userA and userB.
Help!?!?!?!?