Configure Logging for the Keyfactor Bash Orchestrator

By default, the Keyfactor Bash OrchestratorClosed The Bash Orchestrator, one of Keyfactor's suite of orchestrators, is used to discover and manage SSH keys across an enterprise. places its log files in the /opt/keyfactor-bash-orchestratorClosed Keyfactor orchestrators perform a variety of functions, including managing certificate stores and SSH key stores./logs directory, generates logs at non-debug level, rotates the logs when they reach 50 MB, and retains 10 archive logs before deletion.

If you wish to change these defaults after the installation is complete:

  1. On the orchestrator machine where you wish to adjust logging, open a command shell and change to the directory in which the orchestrator is installed. By default this is /opt/keyfactor-bash-orchestrator.
  2. In the command shell in the directory in which the orchestrator is installed, change to the Configuration directory.
  3. Using a text editor, open the orchestrator_config file in the Configuration directory. Your orchestrator_config file may have a slightly different layout than shown here, but it will contain the three fields highlighted in the below figure. The fields you may wish to edit are:
    • logFile=/opt/keyfactor-bash-orchestrator/logs/bash-orchestrator-log.txt
    • The path and file name of the active orchestrator log file.

      Important:  If you choose to change the path for storage of the log files, you will need to create the new directory (e.g. /opt/sshorchlogs) and grant the Linux service account under which the orchestrator service is running (see Create a Service Account for the Keyfactor Bash Orchestrator) full control permissions on this directory.
    • logFileSize=50000000

      The maximum file size of each log file. After a log file reaches the maximum size, it is rotated to an archive file name and a new log file is generated. The default is 50000000 (50 MB).

    • logFilesToKeep=10

      The number of archive files to retain before deletion.

    • debugLogEnabled=false

      The level of log detail that should be generated. The default of false logs error and some informational data but at a minimal level to avoid generating large log files. For troubleshooting, it may be desirable to set the debug level to true.

    • Figure 596: Configure Logging for the Keyfactor Bash Orchestrator

Tip:  Log messages for remote control targets are written to the standard Linux syslog. The location of these will vary depending on the system OS. Log messages for the orchestrator's communication with the remote control targets are included in the primary orchestrator log (described above). It can be helpful to look in both places when troubleshooting an issue with a remote control target.