- Plesk for Linux
Why isn't access_log.processed rotated? Maximum number of log files is set to 1, but several log files are still kept on disk:
# ll /var/www/vhosts/system/example.com/logs/
-rw-r--r-- 2 root root 8806 Sep 12 11:51 access_log
-rw-r--r-- 2 root root 147961646 Sep 12 08:18 access_log.processed
-rw-r--r-- 2 root root 1160177 Oct 6 2015 access_log.processed.1
The rotation takes place only when the log rotation condition is met (by size 1Mb, in this example).
Even if the maximum number of log files is decreased, the log files will remain of the disk until the next rotation.