
Originally Posted by
cPanelDavidG
Commonly, log rotation is done to ease the disk consumption since archived logs can be more easily located and then moved off to another machine if they need to be kept for an extended period of time.
I am wondering about your particular scenario, why it would be more beneficial to rotate on the basis of the time difference of the first log entry to the last log entry rather than the size of the file? Knowing what this functionality may be used for can help us anticipate specific conditions that may need to be accounted for when implementing such functionality.