Sun Directory Server Enterprise Edition 7.0 Administration Guide

ProcedureTo Configure Access and Error Log Deletion Based on File Size

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

  1. Specify the maximum size for log files.

    $ dpconf set-access-log-prop -h host -p port max-size:memory-size

    For example, to keep only the most recent log files with their aggregate size not more than 5 Mbytes, use this command:

    $ dpconf set-access-log-prop -h host1 -p 1389 max-size:5M