•
The total number of logs you want 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
to
. If you do, the directory will not rotate the log and the log will grow
1
indefinitely.
•
The maximum size (in MB) for each log file. If you don't want to set a
maximum size, type
reaches this maximum size (or the maximum age defined in the next step), the
directory archives the file and starts a new one. If you set the maximum
number of logs to
•
How often the directory archives the current log file and creates a new one by
entering a number of minutes, hours, days, weeks, or months. You can also
rotate logs at a particular time of the day, for example, everyday at midnight.
The default is every day. If you set the maximum number of logs to
directory ignores this attribute.
Note that each log file inludes a title, which identifies the server version, hostname,
and port, for ease of archiving or exchanging log files. The title is of the form:
Netscape-Directory/version build_number
hostname:port (instance_directory)
For example, the first couple of lines of any log files generated by a Directory
Server instance may show lines similar to these:
Netscape-Directory/6.2 B2003.188.1157
myhost.example.com:389 (/usr/netscape/servers/slapd-ds62)
Defining a Log File Deletion Policy
If you want the directory to automatically delete old archived logs, you can define
a log file deletion policy from the Directory Server Console.
NOTE
The log deletion policy only makes sense if you have previously
defined a log file rotation policy. Log file deletion will not work if
you have just one log file. The server evaluates the log file deletion
policy at the time of log rotation.
in this field. The default is
-1
, the directory ignores this attribute.
1
Chapter 12
Viewing and Configuring Log Files
logs. Do not set this value
10
MB. Once a log file
100
Monitoring Server and Database Activity
, the
1
415
Need help?
Do you have a question about the NETSCAPE DIRECTORY SERVER 6.2 - ADMINISTRATOR and is the answer not in the manual?
Questions and answers