Configuring Logrotate
Logrotate is a utility that rotates the following log files based on the settings you configure.
- Web server logs
- FTP server logs
- Majordomo logs
You can set your log files to rotate four times a day, once a day, or once a week. You can also change the Logrotate settings at any time.
To configure Logrotate:
- Click the Shortcuts tab on the .
- In the shortcuts area, click Log Manager (Web Server section). The Logrotate window opens and the Automated Log Rotation Parameters form is displayed.
- In the Frequency field, choose the rate at which you want to rotate the log. Frequency options include:
- In the Log File Size field, enter the maximum size of the log file (in bytes, kilobytes, or megabytes).
Note: When log files reach the specified size, the logs are rotated before the scheduled rotation.
- In the Number of Archives field, enter the maximum number of archives you want to retain on the server. You can retain up to 5 archives.
Important: When the number of log archives exceed the set value, the archive is deleted.
- Click Rotate. The log is purged into an archive file, enabling the empty file to receive fresh logs. This process can take up to 10 minutes to complete.