Log Rotation
The Log Rotation page in AdminBolt allows administrators to configure how system log files are rotated and retained over time. Proper log rotation helps prevent disk overuse and keeps logs manageable.

Overview
URL: /admin/log-rotate-settings
This section provides customizable options for managing the lifecycle of log files generated by various services in the system.
Rotation Method
You can choose between two rotation strategies:
- By Period (daily, weekly, monthly) – Rotate logs based on a time interval, regardless of their size.
- By Size (megabytes) – Rotate log files when they reach a specified file size.
Maximum Log File Size (MB)
- Set the size threshold (in megabytes) that triggers log rotation.
- Example: If set to
20, logs will rotate once the file exceeds 20MB. - Only applicable when By Size method is selected.
Number of Rotations to Keep
- Define how many rotated log archives should be retained before the oldest ones are deleted.
- Example: If set to
7, the system will keep the last 7 rotated logs and remove older ones.
Compress Rotated Logs
- Toggle to enable gzip compression for rotated log files.
- Helps save disk space, especially when log activity is high.
After adjusting the settings, click the Save changes button to apply the rotation policy.