Skip to content

Flags Reference

Named flags are available on all signal type subcommands (owit logs, owit metrics, owit traces, owit profiles) and on owit tail.

Relative time window. Accepted units: s (seconds), m (minutes), h (hours), d (days).

Terminal window
owit logs level=error --last 30m
owit metrics name eq http_requests_total --last 2h
owit traces duration gt 1s --last 7d

Maximum number of result rows returned.

Terminal window
owit logs level=error --last 1h --limit 100

Aggregation expression. Supported functions: count(), avg(<field>), sum(<field>).

Terminal window
owit metrics name eq http_requests_total --summarize "sum(value) by service" --last 1h
owit logs level=error --summarize "count() by service" --last 24h

Target specific backends by name, bypassing the default fan-out scope.

Terminal window
owit logs level=error --backends loki,datadog --last 1h

Target all backends with a given tag, bypassing the default fan-out scope.

Terminal window
owit logs level=error --tag prod --last 1h
owit metrics name eq cpu_usage --tag staging --last 30m

Output format. Options: table (default), json.

Terminal window
owit logs level=error --last 1h --output json | jq '.rows[] | .message'

In json mode the response includes both rows and warnings arrays, enabling scripts to detect partial results programmatically.