Introduction
Log rotation is used to rotate out log files to ensure files either do not get too big or have a proper separation between dates to allow for more manageable log files in case they need to be reviewed.
Procedure
Apache log files can be configured in Apache’s Log Rotation interface (Home >> Service Configuration >> Apache Configuration >> Log Rotation)
https://docs.cpanel.net/whm/service-configuration/log-rotation/