Introduction
The logrotate utility is designed to simplify the administration of log files on a system which generates a lot of log files. Logrotate allows for the automatic rotation compression, removal and mailing of log files. Logrotate can be set to handle a log file daily, weekly, monthly or when the log file gets to a certain size.
Github: https://github.com/logrotate/logrotate
Installation
Logrotate can be installed with the logrotate package.
paru -S logrotate
By default, logrotate runs daily using a systemd timer: logrotate.timer.
Show status
sudo systemctl status logrotate.service
#logrotate is usually run through the systemd service: logrotate.service