- Server operating system version
- Debian 12.6
- Plesk version and microupdate number
- Plesk Obsidian 18.0.62
Hi.
I noticed some log files are not rotating.
Example:
/var/log/daemon.log
/var/log/fail2ban.log
/var/log/syslog
/var/log/plesk/httpsd_access_log
After checking config file, /opt/psa/etc/logrotate.conf
I think it missing "include /etc/logrotate.d", because /etc/logrotate.d contains settings for logs that are not rotating
I noticed some log files are not rotating.
Example:
/var/log/daemon.log
/var/log/fail2ban.log
/var/log/syslog
/var/log/plesk/httpsd_access_log
After checking config file, /opt/psa/etc/logrotate.conf
Code:
allowhardlink
include /opt/psa/etc/logrotate.d
/var/log/plesk/xferlog.processed {
missingok
rotate 24
monthly
maxsize 200M
compress
nocreate
}
/var/log/maillog.processed {
missingok
rotate 24
monthly
maxsize 200M
compress
nocreate
}
/opt/psa/var/webalizer.cache {
missingok
rotate 0
size 512M
nocreate
}
I think it missing "include /etc/logrotate.d", because /etc/logrotate.d contains settings for logs that are not rotating
Code:
# ls /etc/logrotate.d/
alternatives apt drweb-update fail2ban mariadb nginx plesk plesk-php83 sw-cp-server syslog-ng
apache2 dpkg drwebd httpd-prerotate mod_security passenger plesk-php82 ppp sw-engine unattended-upgrades