Defining a Log File Deletion Policy

Red Hat-Directory/8.0 B2007.188.1157 myhost.example.com:389

(/usr/lib/dirsrv/slapd-example)

1.2. Defining a Log File Deletion Policy

For the directory to automatically delete old archived logs, define a log file deletion policy from the Directory Server Console.

NOTE

The log deletion policy only makes sense if there is already a defined log file rotation policy. Log file deletion will not work if there is just one log file. The server evaluates the log file deletion policy at the time of log rotation.

The log file deletion policy can be configured with the following parameters:

The maximum size of the combined archived logs. When the maximum size is reached, the oldest archived log is automatically deleted. To avoid setting a maximum size, type -1in this field. The default is 500 megabytes. This parameter is ignored if the maximum number of log files is set to 1.

The minimum amount of free disk space. When the free disk space reaches this minimum value, the oldest archived log is automatically deleted. The default is 5 megabytes. This parameter is ignored if the maximum number of log files is set to 1.

The maximum age of log files. When a log file reaches this maximum age, it is automatically deleted. The default is 1 month. This parameter is ignored if the maximum number of log files is set to 1.

1.3. Access Log

The access log contains detailed information about client connections to the directory.

1.3.1. Viewing the Access Log

To view the access log in the Directory Server Console, do the following:

1.In the Directory Server Console, select the Status tab.

2.In the navigation tree, expand the Log folder, and select the Access Log icon. A table displays a list of the last 25 entries in the access log.

• To refresh the current display, click Refresh. Select the Continuous checkbox for the

433

Page 453
Image 453
HP UX Red Hat Direry Server Software manual Defining a Log File Deletion Policy, Viewing the Access Log