Sun Directory Server Enterprise Edition 7.0 Administration Guide

ProcedureTo Configure Access and Error Log Deletion Based on Time

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 age for log files.

    $ dpconf set-access-log-prop -h host -p port max-age:duration

    where duration includes a unit of days (d), weeks (w), or months (M). For example, to delete backup log files older than five days, use this command:

    $ dpconf set-access-log-prop -h host1 -p 1389 max-age:5d