Chapter 13. Monitoring Server and Database Activity

The access mode or file permissions with which log files are to be created. The default value is 600. The valid values are any combination of 000 to 777, as they mirror numbered or absolute UNIX file permissions. This value must be a combination of a 3-digit number, the digits varying from 0 through 7:

0 — None

1 — Execute only

2 — Write only

3 — Write and execute

4 — Read only

5 — Read and execute

6 — Read and write

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 -1in this field. The default is 100 megabytes. Once 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, hostname, and port, for ease of archiving or exchanging log files. The title has the following form:

Red Hat-Directory/version build_number hostname:port

(/usr/lib/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:

432

Page 452
Image 452
HP UX Red Hat Direry Server Software manual Monitoring Server and Database Activity