ostra events stream
Follow events live (SSE)
Synopsis
Section titled “Synopsis”Follow events live through the SSE endpoints.
Without argument it streams every trigger you can read stats on (GET /events/stream, needs the trigger:stats scope on all triggers). With a trigger UUID or alias it streams that trigger only (GET /events/stream/:id, needs trigger:stats:<id>). Aliases resolve like in events send.
Human output is one line per event: time, trigger, metadata summary. --json (or --output json, the default when stdout is piped) prints one JSON object per line, as sent by the server, for jq. A batch ingest arrives as one batch_event line carrying the event count.
--events switches to the per-event stream (?mode=events): one line per event with its id, trigger, time and full metadata (--json), meant to debug hooks and integrations like tail -f. The server caps it per connection (sse.event_stream_max_rate, 100 events/s by default): above the cap events are dropped, and a notice with the count goes to stderr. A client that stays over the cap is disconnected and reconnects. Events sent in the instant you connect can be missed.
On a network drop or a server restart the stream reconnects with a growing delay (1s to 30s); notices go to stderr. The server does not number its frames, so events emitted while disconnected are not replayed (Last-Event-ID is not supported, also with --events). Ctrl+C stops the stream with exit code 0.
ostra events stream [trigger-or-alias] [flags]Options
Section titled “Options” --events Follow each event individually (id, metadata) instead of aggregated batches -h, --help help for stream --json One JSON object per line (same as --output json)Options inherited from parent commands
Section titled “Options inherited from parent commands” --api-key string API key for authentication --api-key-file string File holding the API key (keeps it off argv) --connect-timeout duration Connect timeout (0 disables) (default 5s) --endpoint string API endpoint URL -o, --output string Output format: json, table, csv -q, --quiet Minimal output --timeout duration Request timeout (0 disables) (default 10s)SEE ALSO
Section titled “SEE ALSO”- ostra events - Manage events