Sun Java System Directory Server Enterprise Edition 6.0 Administration Guide

Deleting Directory Proxy Server Logs

Directory Proxy Server enables you to configure log deletion based on time, size, or free disk space (the default). For more information about these deletion policies, see Log File Deletion in Sun Java System Directory Server Enterprise Edition 6.0 Reference.

The following procedures configure log deletion for the access log. To configure log deletion for the error log, use the same commands, but replace access with error.

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.

    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

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.

    Specify the maximum size for log files.


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

    For example, to delete backup log files greater than 1 Mbyte, use this command:


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

ProcedureTo Configure Access and Error Log Deletion Based on Free Disk Space

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

    Specify the minimum available disk space.


    $ dpconf set-access-log-prop -h host -p port min-free-disk-space-size:memory-size
    

    For example, to delete backup log files when the available disk space is less than 2 Mbytes, use this command:


    $ dpconf set-access-log-prop -h host1 -p 1389 min-free-disk-space-size:2M