Symptoms
On an EL9 server, (e.g. CloudLinux 9 and AlmaLinux 9). The system logs below are not being rotated when logrotate runs and are growing large:
- /var/log/cron
- /var/log/maillog
- /var/log/messages
- /var/log/secure
- /var/log/spooler
Cause
The rsyslog package no longer provides the syslog rotate configuration file on EL9 servers. This must be added using a separate package called "rsyslog-rotate".
Resolution
Install the rsyslog-logrotate package to add the required configuration files.
- Access your server using SSH as the
rootuser. Install the rsyslog-logrotate package:
# dnf install rsyslog-logrotate
Comments
0 comments
Article is closed for comments.