Logrotate is a Linux tool that automates the management of log files by rotating them to prevent excessive disk space usage.
When you edit individual log configurations, you can customize how often logs are rotated, how many backups to keep, whether to compress logs, and even define post-rotation actions like service restarts, tailoring log management to your system's needs.
Below are the steps to install and access basic configuration options in the Control Web Panel (CWP) Log Rotate utility.
Set Up Logrotate
IMPORTANT: This solution will require root access. If this needs to be obtained, follow the guide on requesting root access.
- SSH into the server as root
- Confirm Logrotate is installed by running
logrotate --version
-
If not installed, run
yum -y install logrotate
NOTE: This installs Logrotate. - Log into CWP Admin
- Navigate to File Management
- Click on Logrotate Manager
-
Locate the service log file that needs to be configured
EXAMPLE: To make changes to the default configuration, click Edit on the line of logrotate conf. - Click on Edit
- Make any necessary modifications
- Click Save Changes
-
Click Run Now to test
TIP: You should see a message stating that the Operation was performed successfully!
- To verify the current status of logs managed by Log Rotate, click the Logrotate Status tab
Comments
0 comments
Article is closed for comments.