Sun Java System Web Server 6.1 SP12 Administrator's Guide

Internal-daemon Log Rotation

This type of log rotation happens within the HTTP daemon, and can only be configured at system startup. Internal daemon log rotation process allows the server to rotate logs internally without requiring the server to restart. Logs rotated using this method are saved in the following format:

access.<YYYY><MM><DD><HHMM>
error. <YYYY><MM><DD><HHMM>

Specify the time used as a basis to rotate log files and start a new log file. For example, if the rotation start time is 12:00 a.m., and the rotation interval is 1440 minutes (one day), a new log file is created immediately when you save and apply changes irrespective of the present time. The log file will rotate every day at 12:00 a.m., and the access log will be stamped at 12:00 a.m. and saved as access.200307152400. Similarly, if you set the interval at 240 minutes (4 hours), the 4 hour intervals begin at 12:00 a.m., and the access log files contain information collected from 12:00 a.m. to 4:00 a.m., from 4:00 a.m. to 8:00 a.m.

If log rotation is enabled, log file rotation starts at server startup. The first log file to be rotated gathers information from the current time until the next rotation time. Using the previous example, if you set your start time at 12:00 a.m. and your rotation interval at 240 minutes, and the current time is 6:00 a.m., the first log file to be rotated will contain the information collected from 6:00 a.m. to 8:00 a.m, and the next log file will contain information from 8:00 a.m. to 12:00 p.m. (noon).