owit logs
Query log entries across all configured backends that support the logs signal type.
owit logs [filters] [flags]Examples
Section titled “Examples”# All error logs in the last hourowit logs level=error --last 1h --limit 100
# Errors from a specific serviceowit logs level=error service=payments --last 30m
# Logs containing a specific messageowit logs message contains "connection refused" --last 2h
# Not info level, from productionowit logs level ne info --tag prod --last 1h
# Output as JSON for scriptingowit logs level=error --last 1h --output json | jq '.rows[] | .message'
# Specific backends onlyowit logs level=error --backends loki,datadog --last 30mCanonical fields
Section titled “Canonical fields”| Field | Description |
|---|---|
timestamp | RFC 3339 timestamp |
_source | Backend name |
service | Service name |
level | Log level (error, warn, info, debug) |
message | Log line body |
trace_id | Distributed trace identifier (when present) |
span_id | Span identifier (when present) |
See also
Section titled “See also”- Filter Operators
- Flags Reference
- owit tail — stream logs in real time