HP-UX Directory Server 8.1 administrator guide
7 Read, write, and execute
In the 3-digit number, the first digit represents the owner's permissions, the second digit
represents the group's permissions, and the third digit represents everyone's permissions.
When changing the default value, keep in mind that 000 will not allow access to the logs
and that allowing write permissions to everyone can result in the logs being overwritten or
deleted by anyone.
The newly configured access mode will only affect new logs that are created; the mode will
be set when the log rotates to a new file.
• The maximum number of logs for the directory to keep
When the directory reaches this number of logs, it deletes the oldest log file in the folder
before creating a new log. The default is 10 logs. Do not set this value to 1, or the directory
will not rotate the log, and the log will grow indefinitely.
• The maximum size (in megabytes) for each log file
To keep from setting a maximum size, type -1 in this field. The default is 100 megabytes.
When a log file reaches this maximum size (or the maximum age), the directory archives
the file and starts a new one. Setting the maximum number of logs to 1 causes the directory
to ignore this attribute.
• How often the directory archives the current log file and creates a new one
The maximum age of the file can be set in minutes, hours, days, weeks, or months. The logs
can also be rotated at a particular time of the day; for example, every day at midnight. The
default is every day. Setting the maximum number of logs to 1 causes the directory to ignore
this attribute.
Each log file includes a title, which identifies the server version, host name, and port, for ease of
archiving or exchanging log files. The title has the following form:
HP-UX-Directory/version build_number hostname:port (/etc/opt/dirsrv/slapd-instance_name)
For example, the first couple of lines of any log files generated by a Directory Server instance
may show lines similar to these:
HP-UX-Directory/8.1.0 B20xx.yyy.zzzz myhost.example.com:389 (/etc/opt/dirsrv/slapd-example)
14.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.
512 Monitoring server and database activity