F5F Stay Refreshed Software Operating Systems The log rotation process is affecting some files while skipping others.

The log rotation process is affecting some files while skipping others.

The log rotation process is affecting some files while skipping others.

A
alejandro351
Member
137
06-16-2016, 10:10 AM
#1
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.
A
alejandro351
06-16-2016, 10:10 AM #1

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.