get_commandlog_history
Retrieve persisted command log entries to investigate past incidents. Filter by time range, command, or duration to audit Valkey instance activity.
Instructions
Get persisted COMMANDLOG entries from storage (Valkey 8+ only). Supports time range filtering to investigate specific incidents. Returns empty with a note if COMMANDLOG is not supported on this instance.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max entries to return | |
| command | No | Filter by command name | |
| endTime | No | End time (Unix timestamp ms) | |
| startTime | No | Start time (Unix timestamp ms) | |
| instanceId | No | Optional instance ID override | |
| minDuration | No | Min duration in microseconds |