以 PDF 格式下载本书 (3633 KB)
nsslapd-accesslog-logrotationtime(5dsconf)NAME | Synopsis | Description | Examples | Attributes NAME
Synopsisnsslapd-accesslog-logrotationtime:
{time-interval} [time-of-day | *] [min-file-size | *]
Description
This attribute specifies the time interval, the time of the day, and the minimum file size for access, audit, or error rotation. The unit of the time interval is specified by the nsslapd-accesslog-logrotationtimeunit, nsslapd-auditlog-logrotationtimeunit, or nsslapd-errorlog-logrotationtimeunit attribute. The valid range for this attribute is as follows. This attribute must be used in conjunction with the nsslapd-accesslog-logrotationtimeunit, nsslapd-auditlog-logrotationtimeunit, or nsslapd-errorlog-logrotationtimeunit attribute. ExamplesExample 1 To Rotate the Access Log at 11:30 pm Every Day Regardless of the Size of the Log FileTo specify when the access log is rotated, the nsslapd-accesslog-logrotationtime and the nsslapd-accesslog-logrotationtimeunit attributes must be set. To rotate the log daily, the nsslapd-accesslog-logrotationtimeunit must be set as follows: nsslapd-accesslog-logrotationtimeunit: day To rotate the log at 11:30 pm daily, the nsslapd-accesslog-logrotationtime must be set as follows: nsslapd-accesslog-logrotationtime: 1 2330 The min-file-size is not specified, therefore,the log is rotated irrespective of the file size. Example 2 To Rotate the Error Log at 11:30 pm Every Day if the File Size is Greater Than 10 KBTo specify when the error log is rotated, the nsslapd-errorlog-logrotationtime and the nsslapd-errorlog-logrotationtimeunit attributes must be set. To rotate the log daily, the nsslapd-accesslog-logrotationtimeunit must be set as follows: nsslapd-accesslog-logrotationtimeunit: day To rotate the log at 11:30 pm daily if the file size is greater than 10 KB, the nsslapd-accesslog-logrotationtime must be set as follows: nsslapd-accesslog-logrotationtime: 1 2330 10 Example 3 To Rotate the Error Log at Any Time if the File Size is Greater Than 10 KBTo specify when the error log is rotated, the nsslapd-errorlog-logrotationtime and the nsslapd-errorlog-logrotationtimeunit attributes must be set. To rotate the log every minute if the file size is greater the 10 KB, the nsslapd-errorlog-logrotationtimeunit attribute must be set as follows: nsslapd-accesslog-logrotationtimeunit: Minute To rotate the log when the file size is greater than 10 KB , the nsslapd-errorlog-logrotationtime must be set as follows: nsslapd-errorlog-logrotationtime: 1 * 10 The time-of-day is specified as *, therefore, no specific time of day is specified. AttributesSee attributes(5) for descriptions of the following attributes:
NAME | Synopsis | Description | Examples | Attributes |
|||||||||||||||||