Red Hat 8.1 Configuration And Command Reference page 33

Directory server; configuring and managing with command-line utilities
Hide thumbs Also See for 8.1:
Table of Contents

Advertisement

attribute value to 1 or set the nsslapd-errorlog-logrotationtime attribute to -1. T he 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
"nsslapd-errorlog-maxlogsperdir (Maximum Number of Error Log Files)"
Parameter
Entry DN
Valid Range
Default Value
Syntax
Example
2.3.1.55. nsslapd-errorlog-logrotationtimeunit (Error Log Rotation T ime Unit)
T his attribute sets the units for nsslapd-errorlog-logrotationtime (Error Log Rotation T ime). If the
unit is unknown by the server, then the log never expires.
Parameter
Entry DN
Valid Values
Default Value
Syntax
Example
2.3.1.56. nsslapd-errorlog-maxlogsize (Maximum Error Log Size)
T his 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
Entry DN
Valid Range
Default Value
Syntax
Example
2.3.1.57. nsslapd-errorlog-maxlogsperdir (Maximum Number of Error Log Files)
T his attribute sets the total number of error logs that can be contained in the directory where the error
log is stored. Each time the error log is rotated, a new log file is created. When the number of files
contained in the error log directory exceeds the value stored on this attribute, then the oldest version of
the log file is deleted. T he default is 1 log. If this default is accepted, the server does not rotate the log,
and it grows indefinitely.
If the value for this attribute is higher than 1, then check the nsslapd-errorlog-logrotationtime
attribute to establish whether log rotation is specified. If the nsslapd-errorlog-logrotationtime
attribute has a value of -1, then there is no log rotation. See
logrotationtime (Error Log Rotation T ime)"
Parameter
Entry DN
Valid Range
Default Value
Syntax
Example
Red Hat D irectory Server 8.1 Configuration and Command Reference
Description
cn=config
-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).
1
Integer
nsslapd-errorlog-logrotationtime: 100
Description
cn=config
month | week | day | hour | minute
week
DirectoryString
nsslapd-errorlog-logrotationtimeunit: day
Description
cn=config
-1 | 1 to the maximum 32 bit integer value
(2147483647) where a value of -1 means the log
file is unlimited in size.
100
Integer
nsslapd-errorlog-maxlogsize: 100
Section 2.3.1.54, "nsslapd-errorlog-
for more information.
Description
cn=config
1 to the maximum 32 bit integer value
(2147483647)
1
Integer
nsslapd-errorlog-maxlogsperdir: 10
Section 2.3.1.57,
for more information.
33

Advertisement

Table of Contents
loading

Table of Contents