Linux Shell Tips published a tutorial about how to rotate logs with Logrotate in Linux.
How to Rotate Logs With Logrotate in Linux
When an application under a Linux operating system environment is running, background processes linked to that application are initiated. Events linked with the execution of these applications are recorded on a log file.
How to Rotate Logs With Logrotate in Linux