How to rotate and backup logs to avoid log files becoming very large?
To avoid a log file becoming very large we recommend to setup the logrotate
tool and implement the following rules:
- Rotate logs daily
- Keep the logs for “Log retention period” as recommended in List of logs to enable and backup
- Append the date by default to the log file names so they can be easily found
- Backup the logs to your backup server