Last Modified: Jul 24, 2020
Opened: Feb 27, 2015
During log file rotation (whose frequency is variable based on the file, daemon, and load), logs may be lost between the time when logrotate performs its rotation and the daemons are signaled to start writing to new files.
Logs may be lost while the logrotate event is occurring.
This can occur during logrotate.
Important logs may be forwarded off-box.
This fix changes the logrotate scripts such that the 'active' log files at the time of the rotate are renamed but not compressed. This gives daemons the opportunity to continue writing to their log files without loss of data. The compression is postponed until the subsequent log rotation. This uses slightly more disk space, but avoids log loss.