Configure Logging
Keyfactor Command provides extensive logging for visibility and troubleshooting. By default:
-
For Windows installations under IIS log files are placed in the C:\Keyfactor\logs directory.
-
For container installations under Kubenetes, log files are managed with the standard Kubernetes logging system.
-
Logs are generated at the Info logging level.
-
For Windows installations under IIS, the primary logs are retained for two days before being deleted.
-
For container installations under Kubenetes, the log retention is controlled by the Kubernetes configuration settings containerLogMaxSize (default 10MiB) and containerLogMaxFiles (default 5).
For Windows installations under IIS, if you wish to change these defaults you can open the configuration file for each type of log on each Keyfactor Command server where you wish to adjust logging, and edit the file in a text editor (e.g. Notepad) using the “Run as administrator” option. Each component has its own NLog configuration file and NLog logging output path. For container installations under Kubernetes, these are modified with the custom values file.
For more information, see Editing NLog.
Was this page helpful? Provide Feedback