ck get event-log
Gets the CanKingService event log entries from windows event logs and gets the CanKing log file.
Synopsis
ck get event-log
[--url <String>]
[--api-key <String>]
[--language <en|zh|ja>]
[-o|--out <OUTPUT_DIRECTORY>]
[-s|--start <START_DATETIME>]
ck get event-log -h|--help
Options
--url
Specify the URL of the CanKingService if connecting to a remote host. Falls back to the CANKING_REMOTE_URL environment variable. If not specified, the command will connect to a local CanKingService instance.--api-key
API key required when connecting to a remote CanKingService instance. Falls back to the CANKING_REMOTE_API_KEY environment variable.--language
Specify the preferred language to be used in all output strings. Default value is English (en). Supported languages are English (en), Chinese (zh), and Japanese (ja).-o|--out
The output directory where the extracted log files will be stored.-s|--start
The start date and time for the event log entries to be retrieved. Format: yyyy-MM-ddTHH:mm:ss. Default is 48 hours ago.
Examples
ck get event-log
ck get event-log --out C:\Logs
ck get event-log --start 2025-10-01T00:00:00
ck get event-log --out C:\Logs --start 2025-10-01T00:00:00