Skip to main content

Local-Log Rotation

This section describes how to control Key Manager agent log rotation.

On Unix platforms the local agent log is rotated whenever the log‑file size exceeds its limit (1MB by default). To specify a custom limit, set SSH_KEY_AGENT_LOG_SIZE to the number of kilobytes at which the local agent log is rotated.

On Unix machines, the current local log file and the rotated log file are the following respectively:

/var/log/ssh-key-agent.log

/var/log/ssh-key-agent.log.0

note

On Unix hosts, the Key Manager agent only retains one rotated log file.

On Windows platforms the log is rotated every time the Key Manager agent service is restarted. On Windows machines, the current local log file and the rotated log file are the following respectively (replace timestamp with the time when the log was created, specified in YYY‑MM‑DD‑hh‑mm‑ss format):

%PROGRAMDATA%\SSH Communications Security\SSH UKM Agent\UKMAgent.log

%PROGRAMDATA%\SSH Communications Security\SSH UKM Agent\UKMAgent‑timestamp.log