evtctxlist

Retrieves the list of event contexts stored in the in-memory store. You can filter by topic.

Command properties

ItemDescription
Command typeDriver query
Required permissionNone
License usageNot counted
Parallel executionNot supported
Distributed executionNot supported

Syntax

evtctxlist [topic=STR]

Options

topic=STR
Topic name of the event contexts to retrieve. When specified, retrieves only event contexts for that topic. If not specified, retrieves all event contexts.

Output fields

FieldTypeDescription
topicstringEvent topic name
keystringEvent context key
hoststringExternal clock host name. Null if not set.
counterintegerCumulative number of events matched to the event context
createdtimestampEvent context creation time
expire_attimestampScheduled expiration time. Null if no expiration time is set.
timeout_attimestampScheduled timeout time. Null if no timeout is set.
maxrowsintegerMaximum number of rows that can be stored in the event context
varsobjectList of variables set in the event context
rowsarrayList of rows stored in the event context

Error codes

Parse errors

N/A

Runtime errors

N/A

Description

The evtctxlist command retrieves event contexts stored in the in-memory store and outputs the topic, key, counter, creation time, expiration and timeout information, variables, and stored rows for each event context. Use this command to check the status of event contexts created by the evtctxadd command.

Event contexts are retrieved in batches of 5,000 records.

Examples

  1. Retrieve all event contexts

    evtctxlist
    

    Retrieves all event contexts stored in the in-memory store.

  2. Retrieve event contexts for a specific topic

    evtctxlist topic=login_fail
    

    Retrieves only event contexts for the login_fail topic.

  3. Count event contexts by topic

    evtctxlist | stats count by topic
    

    Counts the number of event contexts per topic.