Chapter 2. Core Server Configuration Reference
34
number of units. The units (day, week, month, and so forth) are given by the
nsslapd-errorlog-
logrotationtimeunit
(Error Log Rotation Time Unit) attribute.
Although it is not recommended for performance reasons to specify no log rotation, as the log
grows indefinitely, there are two ways of specifying this. Either set the
nsslapd-errorlog-
maxlogsperdir
attribute value to
1
or set the
nsslapd-errorlog-logrotationtime
attribute to
-1
. The server checks the
nsslapd-errorlog-maxlogsperdir
attribute first, and, if this attribute
value is larger than
1
, the server then checks the
nsslapd-errorlog-logrotationtime
attribute.
See
Section 2.3.1.57, “nsslapd-errorlog-maxlogsperdir (Maximum Number of Error Log Files)”
for
more information.
Parameter
Description
Entry DN
cn=config
Valid Range
-1 | 1 to the maximum 32 bit integer value
(2147483647), where a value of -1 means
that the time between error log file rotation is
unlimited).
Default Value
1
Syntax
Integer
Example
nsslapd-errorlog-logrotationtime: 100
2.3.1.55. nsslapd-errorlog-logrotationtimeunit (Error Log Rotation Time
Unit)
This attribute sets the units for
nsslapd-errorlog-logrotationtime
(Error Log Rotation Time).
If the unit is unknown by the server, then the log never expires.
Parameter
Description
Entry DN
cn=config
Valid Values
month | week | day | hour | minute
Default Value
week
Syntax
DirectoryString
Example
nsslapd-errorlog-logrotationtimeunit: day
2.3.1.56. nsslapd-errorlog-maxlogsize (Maximum Error Log Size)
This attribute sets the maximum error log size in megabytes. When this value is reached, the error
log is rotated, and the server starts writing log information to a new log file. If
nsslapd-errorlog-
maxlogsperdir
is set to
1
, the server ignores this attribute.
When setting a maximum log size, consider the total number of log files that can be created due
to log file rotation. Also, remember that there are three different log files (access log, audit log, and
error log) maintained by the Directory Server, each of which consumes disk space. Compare these
considerations to the total amount of disk space for the error log.
Parameter
Description
Entry DN
cn=config
Содержание 8.1
Страница 8: ...viii ...
Страница 14: ...xiv ...
Страница 16: ...2 ...
Страница 250: ...236 ...
Страница 334: ...320 ...
Страница 372: ...358 ...