Viewing and Configuring Log Files
Chapter 12
Monitoring Server and Database Activity
449
• The maximum size (in MB) for each log file. If you don’t want to set a
maximum size, type
-1
in this field. The default is
100
MB. Once a log file
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
1
, the directory ignores this attribute.
• 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
1
, the
directory ignores this attribute.
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:
Red Hat-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:
Red Hat-Directory/7.1 B2003.188.1157
myhost.example.com:389 (/opt/redhat-ds/servers/slapd-ds71)
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.
You can configure the following parameters:
• The maximum size of the combined archived logs. When the maximum size is
reached, the oldest archived log is automatically deleted. If you don’t want to
set a maximum size, type
-1
in this field. The default is
500
MB. This
parameter is ignored if the 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
MB. This parameter is ignored in the number of log files is set to
1
.
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.
Summary of Contents for DIRECTORY SERVER 7.1
Page 1: ...Administrator s Guide Red Hat Directory Server Version7 1 May 2005 Updated February 2009 ...
Page 20: ...20 Red Hat Directory Server Administrator s Guide May 2005 Glossary 619 Index 635 ...
Page 22: ...22 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 26: ...26 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 78: ...Maintaining Referential Integrity 78 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 200: ...Assigning Class of Service 200 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 488: ...488 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 528: ...PTA Plug in Syntax Examples 528 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 572: ...572 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 612: ...Examples of LDAP URLs 612 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 634: ...634 Red Hat Directory Server Administrator s Guide May 2005 ...