To Configure Access and Error Log Deletion Based on
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 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