Octri

monitoring logs

課題にまとめられたイベントではなく、個々の発生を確認したい場合に、新しい順でイベントを一覧表示します。ログと検索をご覧ください。

bash
octri monitoring logs [--level <level>] [--q <query>] [--limit <n>]

フラグ

--range <window>stringデフォルト:24h

期間:1h、6h、24h、7d、30d、または90d。

--level <level>string

errorなど、指定した1つのレベルのみ。

--q <query>string

--q timeoutなどの検索語句。

--limit <n>numberデフォルト:50

表示する件数。

例

最近のエラー

bash
octri monitoring logs --level error --limit 10
Output
✔ 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 code
  • octri monitoring issues:ステータス、レベル、またはテキストで絞り込み、課題ごとにまとめたエラーを一覧表示します。
  • octri monitoring traces:最近のトレース、または1つのトレースのスパンを表示します。