monitoring logs
Lists individual events, newest first, for when you need every occurrence rather than the issues they're grouped into. See logs and search.
bash
octri monitoring logs [--level <level>] [--q <query>] [--limit <n>]Flags
--range <window>stringThe time window: 1h, 6h, 24h, 7d, 30d or 90d.
--level <level>stringOnly one level, such as error.
--q <query>stringA search, such as --q timeout.
--limit <n>numberHow many to show.
Examples
Recent errors
bash
octri monitoring logs --level error --limit 10Output
✔ Querying logs
Logs (10 of 10)
WHEN LVL ENDPOINT CODE TOOK MESSAGE
────── ─────── ─────────────── ──── ───── ────────────────────────────────────
2h ago warning GET /invoices 429 191ms Too many requests to /invoices
2h ago error POST /customers 422 82ms currency must be a 3-letter ISO code
3h ago error POST /customers 422 84ms currency must be a 3-letter ISO code
3h ago error POST /customers 422 84ms currency must be a 3-letter ISO code
3h ago error POST /customers 422 84ms currency must be a 3-letter ISO code
3h ago error POST /customers 422 84ms currency must be a 3-letter ISO code
3h ago error POST /customers 422 84ms currency must be a 3-letter ISO code
3h ago error POST /customers 422 84ms currency must be a 3-letter ISO code
3h ago error POST /customers 422 84ms currency must be a 3-letter ISO code
3h ago error POST /customers 422 84ms currency must be a 3-letter ISO codeRelated
octri monitoring issues: List errors grouped into issues, filtered by status, level or text.octri monitoring traces: Recent traces, or one trace's spans.