Specifying custom location for an instance's idslogmgmt.log file
You can specify custom location for an instance's idslogmgmt.log file.
About this task
By default, the idslogmgmt tool when run as a instance
owner with the -I <instance> option or as root without -I option
logs information to the following file:
- On UNIX™-based systems
-
/var/idsldap/version/idslogmgmt.log - On Windows™ systems
-
<SDS install_directory>\var\idslogmgmt.log
To specify a custom location for the idslogmgmt.log
file to log information when using the
idslogmgmt -I <instance> command,
user must set the environment variable IDSLMG_LOG_PATH. Do the following
to specify a custom location for the idslogmgmt.log file: - Create a directory where you want to store the idslogmgmt file. Ensure that the instance owner has the required access rights on the directory.
- Log in to the system using the instance owner's credentials. Note: On UNIX, if a user has logged with credentials other than instance owner, run
su - <instance_owner>. - Set the environment variable, IDSLMG_LOG_PATH, and export the
variable. For example:
- On UNIX-based systems
- export IDSLMG_LOG_PATH=/directoryForLog
- On Windows systems
- set IDSLMG_LOG_PATH=C:\directoryForLog
- From the same console, start the idslogmgmt tool. For example:
This will create the idslogmgmt.log file under the location specified in the IDSLMG_LOG_PATH environment variable. However, IBM® Security Verify Directory Integrator AssemblyLine startup messages will be logged in the <instance_home>/idsslapd-<instance>/etc/logmgmt/idslogmgmt.log file.idslogmgmt -I <instance_name>