Guides

Debug with logs

Use RawTree logs to diagnose inserts, queries, and agent runs.

Debug with logs

RawTree records insert and query activity so humans and agents can understand what happened after a command or API call.

Recent activity

rtree logs --since 1h --limit 50

Failed inserts

rtree logs --since 1h --type insert --status error

Failed queries for one table

rtree logs --since 1h --type select --status error --table events

Machine-readable logs

rtree logs --since 1h --status error --json

Use this form for agents and CI jobs. Log entries include the query, status, exception, rows, duration, tables, projections, and hints.

API logs

START_TIME="2026-04-24T10:00:00Z"
END_TIME="2026-04-24T11:00:00Z"

curl "https://api.rawtree.com/v1/logs?start_time=$START_TIME&end_time=$END_TIME&search=type:insert%20status:error" \
  -H "Authorization: Bearer $API_KEY"

Supported search filters:

  • type:select
  • type:insert
  • type:describe
  • type:explain
  • status:success
  • status:error
  • table:events,audit

Missing OpenTelemetry data

Native OTLP exports are recorded as insert logs on the destination table, so the same filters work for telemetry.

rtree logs --since 1h --type insert --table traces

If an export returned a success response but data is missing:

  • Filter the insert logs by the destination table: traces, logs, or metrics, or the custom table set with an x-rawtree-*-table header.
  • Check the OTLP export response for partialSuccess; RawTree reports rejected spans, log records, or data points there.
  • An OpenTelemetry transform emits zero rows when the payload is missing the expected wrapper arrays, such as resourceSpans. See Empty results.

Agent pattern

When an insert or query fails, run:

rtree logs --since 1h --status error --json

Then use the exception and hints fields to decide the next command.