Log file rotation is the process of compressing or deleting old log files to save disk space and improve
performance. The /etc/logrotate.conf file controls the global settings for log file rotation, such as
frequency,
size
limit,
compression method,
etc.
The
/etc/logrotate.d/
directory
contains
configuration files for specific log files that can override the global settings in /etc/logrotate.conf. The
/usr/sbin/logrotate program is used to perform log file rotation according to the configuration files. It
is
usually
invoked
by
a
cron
job
in
/etc/cron.daily/logrotate.
Reference:
https://documentation.suse.com/sles/15-SP3/html/SLES-all/sec-logrotate.html