Skip Headers
Oracle® Fusion Middleware Man Page Reference for Oracle Directory Server Enterprise Edition
11g Release 1 (11.1.1.7.0)

Part Number E28967-01
Go to Documentation Home
Home
Go to Table of Contents
Contents
Go to Index
Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
PDF · Mobi · ePub

nsslapd-accesslog-logrotationtime

Specify the time interval, the time of the day, and the minimum file size for rotation of the access log, audit log, or error log

SYNOPSIS

nsslapd-accesslog-logrotationtime:
 {time-interval}  [time-of-day | *]  [min-file-size | *]

Description

PROPERTY VALUE

Entry DN

cn=config

Valid Range

See description that follows.

Default Value

1 * *

Syntax

DirectoryString


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.

Examples

Example 1   To Rotate the Access Log at 11:30 pm Every Day Regardless of the Size of the Log File

To 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 KB

To 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 KB

To 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.

Attributes

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPE ATTRIBUTE VALUE

Availability

SUNWdsee7

Stability Level

Unstable