Skip to content

Event browser

The event browser searches events, shows one record, tails new ones and lists subscription lag without a Kafka client. It is what the dashboard’s Events page and the /api/v1/events* routes answer.

The server reads no event store. The event browser is a service of its own, snodra-event-browser: it connects to the server like any service, registers the reserved snodra.events.* query types and answers them from the event store it reads. The server’s routes, the payload rules and what the server does with each answer are on the server’s event browser page. Without a connected browser the server’s events routes answer 404 event browser not installed and the dashboard hides the Events page. With several servers, the browser connects to each one like any service (SNODRA_SERVER_ADDRESS takes a list).

services:
snodra-event-browser:
image: snodra-event-browser:0.5.0
environment:
SNODRA_SERVER_ADDRESS: static://snodra-server:7000
SNODRA_KAFKA_BOOTSTRAP: kafka:19092
SNODRA_EVENT_BROWSER_SOURCES: snodra.events
SNODRA_OTLP_ENDPOINT: http://otel-lgtm:4317
stop_grace_period: 30s
depends_on:
snodra-server:
condition: service_healthy
View Question
Search Which events match a type, key, source, time range, correlation id or payload text?
Record What exactly does this source/segment/position (topic/partition/offset) contain, headers and payload?
Tail What is arriving now?
Lag How far behind is each subscription (on Kafka, each consumer group) on this source?
Lag metric snodra_event_browser_subscription_lag{subscription, source}

Search reads every segment backwards within a scan budget and a time budget; a page carries a cursor, so no record is skipped or repeated between pages. Records written after the first page do not appear in later pages.

The browser’s own settings; the server’s side of the event browser is two settings, SNODRA_SERVER_EVENT_BROWSER_PAYLOADS and SNODRA_SERVER_EVENT_MAX_TAILS (see the server’s event browser page):

Variable Default Meaning
SNODRA_EVENT_STORE kafka The store to read
SNODRA_EVENT_BROWSER_SOURCES snodra.events Comma-separated sources; the first is the default
SNODRA_EVENT_BROWSER_MAX_SCANNED 50000 Records one search reads at most
SNODRA_EVENT_BROWSER_MAX_RESULTS 100 Results one page returns at most
SNODRA_EVENT_BROWSER_TIMEOUT_MS 10000 Time budget of one call
SNODRA_EVENT_BROWSER_MAX_SEARCHES 4 Searches and listings at once
SNODRA_EVENT_BROWSER_MAX_TAILS 4 Tails open at once
SNODRA_EVENT_BROWSER_TAIL_DURATION_MS 900000 A tail’s longest duration
SNODRA_EVENT_BROWSER_MAX_PAYLOAD_BYTES 262144 Payload bytes one record carries
SNODRA_KAFKA_BOOTSTRAP kafka:19092 The brokers

Under access control, the ACL entry needs the event-browser right, for example event-browser = true on the service’s [[service]] table. Without it the browser cannot register the snodra.events.* types.

The server decides who sees payloads, not the browser: a record detail serves a payload only when SNODRA_SERVER_EVENT_BROWSER_PAYLOADS=true and the request presents the dashboard or write token, and every payload view writes an audit line. Payload search (q) is refused otherwise (Payloads). Treat the tokens as read access to your event data.