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
However, when the tool is run by a user with root permission it overrides the file permissions of the idslogmgmt.log file to read-only for other users, thereby not allowing an instance owner to log information in the idslogmgmt.log file specific to an instance.
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:
  1. Create a directory where you want to store the idslogmgmt file. Ensure that the instance owner has the required access rights on the directory.
  2. 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>.
  3. 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
  4. From the same console, start the idslogmgmt tool. For example:
    idslogmgmt -I <instance_name>
    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.
If the environment variable is not set and the idslogmgmt command is run with the -I <instance> option, the information will be logged in the <instance_home>/idsslapd-<instance>/etc/logmgmt/idslogmgmt.log file.