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:

1. Click the Shortcuts tab on the Home page
   .

2. In the shortcuts area, click Log Manager (Web Server section). The Logrotate window opens and the Automated Log Rotation Parameters form is displayed.

3. In the Frequency field, choose the rate at which you want to rotate the log. Frequency options include:

- 4 times daily. The log file is rotated every 6 hours.

- Daily. The log file is rotated once a day.

- Weekly. The log file is rotated once a week.

- Note: This schedule is kept only if the log file has not reached the size specified in the Log File Size field.

3. In the Log File Size field, enter the maximum size of the log file (in bytes, kilobytes, or megabytes).

4. Note: When log files reach the specified size, the logs are rotated before the scheduled rotation.

4. 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.

4. Important: When the number of log archives exceed the set value, the archive is deleted.

5. 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.