The log rotation process is affecting some files while skipping others.
The log rotation process is affecting some files while skipping others.
I configured log rotation on the Ubuntu server with these parameters: weekly rotation, default use of syslog group, owned by /var/log/syslog.su. Retain up to 204 backups, which is four years less than four weeks. Rotate after 204 entries. Generate fresh log files post-rotation. Comment out if you prefer no compression, or enable it for automatic compression during rotation. Delay compression to this folder instead of after rotation. Include the log directory in /etc/logrotate.d for package handling. System logs can be adjusted at /var/www/html/chatsystem/subfolder/*log. Compress log files after rotation. Create new empty logs after each cycle. Script reloads Apache after moving logs and applies the rotation weekly.