Skip to content

Events

These tools read from event sequences — the append-only logs at the heart of Chronicle.

ToolDescription
get_eventsRetrieve events from an event sequence, with optional filtering by sequence range, event source id, and event type. Returns event headers and JSON content.
get_tail_sequence_numberReturn the highest used sequence number (the tail) in an event sequence.
ParameterDescription
eventSequenceIdThe sequence to read from. Defaults to event-log.
from / toThe sequence-number range. from defaults to 0; to is optional.
eventSourceIdAn optional event source id to filter by.
eventTypeAn optional comma-separated event type filter (for example UserRegistered or UserRegistered+1).
eventStore / namespaceDefault to the configured values.

Use it to read what actually happened — for a whole sequence, a range, or a single event source.

The tail is the highest used sequence number, not a total count of events — gaps can exist. Use it to gauge how far a sequence has progressed, for example when checking whether an observer has caught up.

get_events returns raw events. To turn one event source’s history into a “what happened and why” narrative — following correlation and causation — use the design-time causal trace tool instead.