Rolling intervals
Log files are rolled at specific intervals relative to a given hour of the day. Two options control when log files are rolled:
- The offset hour, which is an hour between 0 (midnight) and 23
- The rolling interval
Both the offset hour and the rolling interval determine when log file rolling starts. Rolling occurs every rolling interval and at the offset hour.
For example, if the rolling interval is six hours and the offset hour is 0 (midnight), the logs roll at midnight (00:00), 06:00, 12:00, and 18:00 each day. If the rolling interval is 12 hours and the offset hour is 3, logs roll at 03:00 and 15:00 each day.