system-cep-clocks
Retrieves the CEP clocks registered for each host up to the current time. When an external clock based on log timestamps is used as the basis for CEP context expiration and timeouts, you can check the clock status of each host.
Command properties
| Item | Description |
|---|---|
| Command type | Driver query |
| Required permission | None |
| License usage | Not counted |
| Parallel execution | Not supported |
| Distributed execution | Not supported |
Syntax
Output fields
| Field | Type | Description |
|---|---|---|
| host | string | Host name |
| time | timestamp | Current CEP clock time for the host |
| evict_queue_len | integer | Eviction queue length |
Error codes
Parse errors
N/A
Runtime errors
N/A
Description
The system-cep-clocks command retrieves the clock status for each host registered in the CEP (Complex Event Processing) engine.
The CEP engine manages per-host external clocks based on log timestamps. These clocks are used to determine the expiration time and timeout of event contexts. You can check the number of event contexts queued for eviction through the evict_queue_len field.
Examples
-
Retrieve CEP clocks by host
system-cep-clocksRetrieves the CEP clock status for all currently registered hosts.
-
Retrieve hosts with non-empty eviction queues
system-cep-clocks | search evict_queue_len > 0Filters and retrieves only hosts that have event contexts queued for eviction.