/etc/logrotate.d
NameSizeModeActions
apache1950640editdlrm
backups.conf1100600editdlrm
btmp1300644editdlrm
comet_backup1400644editdlrm
comet_backup_jobs_helper2510644editdlrm
dnf880644editdlrm
dpkg1120644editdlrm
ea-php72-php-fpm2570644editdlrm
ea-php73-php-fpm2570644editdlrm
ea-php74-php-fpm2570644editdlrm
ea-php80-php-fpm2570644editdlrm
ea-php81-php-fpm2570644editdlrm
exim4050644editdlrm
httpd1940644editdlrm
iptraf-ng1380644editdlrm
lfd1720644editdlrm
modsecurity_logs2770644editdlrm
monarx-agent1490644editdlrm
mysql8940644editdlrm
named5140640editdlrm
nscd_logs1800644editdlrm
php-error-logs870644editdlrm
psacct4080644editdlrm
samba1550644editdlrm
syslog2260644editdlrm
wp-toolkit-action-logs7830644editdlrm
wtmp1450644editdlrm
Edit: /etc/logrotate.d/mysql (894B)
# This logname can be set in /etc/my.cnf # by setting the variable "log-error" # in the [mysqld] section as follows: # # [mysqld] # log-error=/var/lib/mysql/mysqld.log # # If the root user has a password you have to create a # /root/.my.cnf configuration file with the following # content: # # [mysqladmin] # password = # user= root # # where "" is the password. # # ATTENTION: This /root/.my.cnf should be readable ONLY # for root ! /var/lib/mysql/mysqld.log { # create 600 mysql mysql su mysql mysql notifempty daily rotate 3 missingok compress postrotate # just if mariadbd is really running if test -x /usr/bin/mysqladmin && \ /usr/bin/mysqladmin ping &>/dev/null then /usr/bin/mysqladmin --local flush-error-log \ flush-engine-log flush-general-log flush-slow-log fi endscript }