/api/ingest/{indexId}. Each ingest token is scoped to a single index; Logwiz forwards the request body unmodified to Quickwit. Use this endpoint when you already control the wire format and want to write to a custom-schema index.
For OpenTelemetry-instrumented apps, prefer the OTLP endpoint — it handles
batching, retries, and schema mapping automatically.
Setup
Pick the target index
Decide which Quickwit index you’ll write to. The default OTEL index is
otel-logs-v0_9 — see Indexes for its schema, or create a custom index in Quickwit first.Create an ingest token
In Administration → Tokens, click Create Token, pick the target index, and copy the token
value from the new row. Tokens are scoped to one index — you cannot reuse a token across indexes.
POST NDJSON to the gateway
Replace
<your-logwiz>, <your-index-id>, and <your-ingest-token>. The payload is one JSON document per line — no trailing comma.Commit modes
?commit=wait_for tells Quickwit to index the documents before returning, so records are immediately searchable. Omit it to use Quickwit’s default asynchronous commit — higher throughput, but records take longer to appear in Search.
Payload format
Logwiz forwards the body unchanged. You must send the format your Quickwit index expects — typically NDJSON withContent-Type: application/x-ndjson. The payload must match the target index schema; Quickwit rejects documents that don’t. See Indexes for the built-in otel-logs-v0_9 schema, or Per Index configuration for Logwiz’s display mapping over your custom schema.
Troubleshooting
- 401 — missing or malformed Bearer token.
- 403 — the token is not scoped to the index in the URL. Create a new token for that index in Administration → Tokens.
- 400 — NDJSON parse error. Common causes: trailing comma between objects, a JSON array instead of one-object-per-line, wrong
Content-Type. - Accepted but not visible in Search — you didn’t pass
?commit=wait_forand Quickwit hasn’t flushed yet. Wait a few seconds or add the parameter.
Related
- OTLP reference — for OpenTelemetry apps
- Indexes — default OTEL schema
- Per Index configuration — map log level, message, and traceback
- POST /api/ingest/ — endpoint reference
