Core Server Configuration Attributes Reference
64 Red Hat Directory Server Configuration, Command, and File Reference • May 2005
nsslapd-errorlog-maxlogsperdir (Maximum Number of Error Log Files)
Specifies the total number of error logs that can be contained in the directory
where the error log is stored. If you are using log file rotation, then 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. The default is
1
log. If you accept this default, the
server will not rotate the log, and it will grow indefinitely.
If the value for this attribute is higher than
1
, then you need to 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 “nsslapd-errorlog-logrotationtime (Error Log
Rotation Time),” on page 62, for more information.
nsslapd-errorlog-mode (Error Log File Permission)
Specifies the access mode or file permissions with which error log files are to be
created. The valid values are any combination of
000
to
777
since they mirror
numbered or absolute UNIX file permissions. That is, the 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.
Entry DN: cn=config
Valid Range: 1 to the maximum 32 bit integer value (2147483647)
Default Value: 1
Syntax: Integer
Example: nsslapd-errorlog-maxlogsperdir: 10