Flags
Plus the global
--config <FILE>. All filters
compose, and matching is exact per field.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Query archived logs by time range, service, level, host, or keyword.
| Flag | Description |
|---|---|
--from <TIME> | Inclusive lower bound of the time range. RFC 3339, or relative to now (e.g. 24h, 30m, 7d). |
--to <TIME> | Inclusive upper bound of the time range. Same format as --from. |
--service <NAME> | Filter by service name. |
--level <LEVEL> | Filter by log level (e.g. info, warn, error). |
--host <HOST> | Filter by originating host. |
--keyword <TEXT> | Free-text keyword to match within log lines. |
--format <FORMAT> | Output format: human (default, colorized terminal output), json (pretty-printed structured array), or raw (one decrypted JSON object per line, for piping to jq). |
--config <FILE>. All filters
compose, and matching is exact per field.
# Last 24 hours of errors from the api service, human-readable.
obsidianlog query --service api --level error --from 24h --format human
# A specific window, piped to jq.
obsidianlog query --from 2026-08-01T00:00:00Z --to 2026-08-02T00:00:00Z \
--format raw | jq '.msg'
# Free-text search across everything archived so far.
obsidianlog query --keyword "connection refused"