Oracle® Fusion Middleware Man Page Reference for Oracle Directory Server Enterprise Edition 11g Release 1 (11.1.1.7.0) Part Number E28967-01 |
|
|
PDF · Mobi · ePub |
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 |
|
Valid Range |
See description that follows. |
Default Value |
|
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.
time-interval
Time interval at which the log is rotated. The unit of the time interval is given by the nsslapd-auditlog-logrotationtimeunit
attribute.
time-of-day
Time of the day, on a 24-hour clock, at which the log is rotated.
The value *
means that no time of day is specified.
min-file-size
Minimum file size in kilobytes at which the log file is rotated. The log file is rotated if the file size is greater than the specified number of kilobytes.
The value *
means that no minimum file size is specified.
This attribute must be used in conjunction with the nsslapd-accesslog-logrotationtimeunit
, nsslapd-auditlog-logrotationtimeunit
, or nsslapd-errorlog-logrotationtimeunit
attribute.
Examples
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.
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
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 |