/etc/logrotate.d
NameSizeModeActions
alternatives1200644editdlrm
apache24330644editdlrm
apport1260644editdlrm
apt1730644editdlrm
bootlog910644editdlrm
btmp1300644editdlrm
certbot820644editdlrm
cloud-init1440644editdlrm
dbconfig-common1070644editdlrm
dpkg1120644editdlrm
fail2ban3540644editdlrm
mysql-server10710644editdlrm
nginx3290644editdlrm
php8.1-fpm2150644editdlrm
php8.3-fpm2150644editdlrm
php8.5-fpm2150644editdlrm
rsyslog3740644editdlrm
ubuntu-pro-client2700644editdlrm
ufw2090644editdlrm
unattended-upgrades2350644editdlrm
wtmp1450644editdlrm
Edit: /etc/logrotate.d/apache2 (433B)
/var/log/apache2/*.log { daily missingok rotate 14 compress delaycompress notifempty create 640 root adm sharedscripts prerotate if [ -d /etc/logrotate.d/httpd-prerotate ]; then run-parts /etc/logrotate.d/httpd-prerotate fi endscript postrotate if pgrep -f ^/usr/sbin/apache2 > /dev/null; then invoke-rc.d apache2 reload 2>&1 | logger -t apache2.logrotate fi endscript }