OwlMetry
CLI

Events

Query and filter events from the CLI with flexible date ranges, levels, and output formats.

Query events ingested by your apps. The CLI supports filtering by project, app, time range, log level, user, session, and screen name.

Query events

owlmetry events [options]
FlagRequiredDescription
--project-id <id>NoFilter by project UUID
--app-id <id>NoFilter by app UUID
--since <time>NoStart time (default: 24h)
--until <time>NoEnd time (default: now)
--level <level>NoFilter by log level: info, debug, warn, error
--user-id <id>NoFilter by user ID
--session-id <id>NoFilter by session UUID
--screen-name <name>NoFilter by screen name
--limit <n>NoMax events to return
--cursor <cursor>NoPagination cursor (from previous response)
--data-mode <mode>Noproduction (default), development, or all

Time formats

The --since and --until flags accept two formats:

Relative — a number followed by a unit suffix:

SuffixUnit
sSeconds
mMinutes
hHours
dDays
wWeeks

Absolute — ISO 8601 timestamps:

2025-01-15T10:00:00Z
2025-01-15

Examples

# Events from the last hour
owlmetry events --since 1h

# Errors from a specific app in the last 7 days
owlmetry events --app-id 550e8400-... --level error --since 7d

# Events for a specific user session
owlmetry events --session-id a1b2c3d4-...

# Development events only
owlmetry events --since 1h --data-mode development

Pagination

When there are more results, the response includes a next_cursor value. Pass it with --cursor to fetch the next page:

owlmetry events --since 7d --limit 50
# Output includes: "More results available. Use --cursor <value>"

owlmetry events --since 7d --limit 50 --cursor eyJsYXN0...

View a single event

owlmetry events view <id>

Shows full event details including custom attributes, device info, and experiment assignments.

ArgumentDescription
<id>Event UUID

Investigate an event

owlmetry investigate <eventId> [--window <minutes>]

Shows events surrounding a specific event, scoped to the same app and user. Useful for understanding the context around an error or notable event.

Argument / FlagRequiredDescription
<eventId>YesTarget event UUID
--window <minutes>NoTime window in minutes before and after the target event (default: 5)

The target event is highlighted in the output. The default output format is log (even when --format table is set).

# See 5 minutes of context around an event
owlmetry investigate a1b2c3d4-...

# Wider window: 30 minutes of context
owlmetry investigate a1b2c3d4-... --window 30

Output formats

Events support all three output formats:

# Table (default) — columnar summary
owlmetry events --since 1h

# Log — chronological log-style view
owlmetry events --since 1h --format log

# JSON — raw data for scripting
owlmetry events --since 1h --format json

The log format is particularly useful for reading event streams chronologically, similar to tailing a log file. The investigate command defaults to log format.

Ready to get started?

Install the CLI and let your agent handle the rest.