Sun Java System Directory Server Enterprise Edition 6.3 Administration Guide

ProcedureTo Modify Log Configuration

You can use DSCC to perform this task. For information, see Directory Service Control Center Interface and the DSCC online help.

  1. View the settings for the log that you want to modify.

    $ dsconf get-log-prop -h host -p port log-type

    For example, to list the existing error log settings, type:

    $ dsconf get-log-prop -h host1 -p 1389 error
    Enter "cn=Directory Manager" password:
    buffering-enabled         :  off
    enabled                   :  on
    level                     :  default
    max-age                   :  1M
    max-disk-space-size       :  100M
    max-file-count            :  2
    max-size                  :  100M
    min-free-disk-space-size  :  5M
    path                      :  /tmp/ds1/logs/errors
    perm                      :  600
    rotation-interval         :  1w
    rotation-min-file-size    :  unlimited
    rotation-time             :  undefined
    verbose-enabled           :  off
  2. Set the new value.

    Set the value that you want for the property.

    $ dsconf set-log-prop -h host -p port log-type property:value

    For example, to set the rotation interval for the error log to two days, use this command:

    $ dsconf set-log-prop -h host1 -p 1389 error rotation-interval:2d