Sun Java System Directory Server Enterprise Edition 6.1 Man Page Reference
只搜寻这本书
以 PDF 格式下载本书 (3633 KB)

nsslapd-accesslog-logrotationtime(5dsconf)

NAME | Synopsis | Description | Examples | Attributes

NAME

    nsslapd-accesslog-logrotationtime, nsslapd-auditlog-logrotationtime, nsslapd-errorlog-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.

    • 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


    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

    SUNWldap-directory

    Stability Level

    Unstable

DS 6.1 Last Revised Jan. 8, 2007

NAME | Synopsis | Description | Examples | Attributes