Skip to main content
Logwiz reads indexes from your Quickwit instance and presents them as searchable log sources in the UI. Each index defines a schema that determines how log fields are stored and queried.

Built-in OpenTelemetry index

The default Logwiz deployment includes otel-logs-v0_9 — a standard OpenTelemetry logs index created by default. It maps directly to the OpenTelemetry Log Data Model and is ready to use without any configuration.

Logwiz field defaults

When Logwiz syncs an index whose ID starts with otel-logs-, it automatically applies these display defaults on first sync:
Logwiz fieldDefault OTel path
Level fieldseverity_text
Message fieldbody
Traceback fieldattributes.exception.stacktrace
You can override any of these in Per Index configuration.

Schema

The index uses strict mode — every document must match the schema exactly. Arbitrary fields are not accepted at the top level. Instead, all custom key-value data goes into the attributes, resource_attributes, or scope_attributes JSON fields.

Core fields

These fields carry the primary log data.
FieldTypeSearchDescription
timestamp_nanosdatetimefastTimestamp in nanoseconds UTC. Primary time field for range filtering.
observed_timestamp_nanosdatetimeindexedWhen the collector observed the event.
severity_texttextindexed, fastSeverity level (INFO, ERROR). Raw tokenizer — exact match.
severity_numberu64indexed, fastNumeric severity: 1-4 TRACE, 5-8 DEBUG, 9-12 INFO, 13-16 WARN, 17-20 ERROR, 21-24 FATAL.
bodyjsonindexedLog message body. Default tokenizer — full-text searchable.
service_nametextindexed, fastDerived from resource_attributes["service.name"]. Raw tokenizer.

Attributes

Key-value metadata on the log event and its resource.
FieldTypeSearchDescription
attributesjsonindexed, fastLog-level metadata. Raw tokenizer, expand_dots enabled.
resource_attributesjsonindexed, fastInfrastructure metadata (host, k8s, cloud). Same as attributes.
dropped_attributes_countu64Dropped log-level attributes count.
resource_dropped_attributes_countu64Dropped resource attributes count.

Trace context

Fields for correlating logs with distributed traces.
FieldTypeSearchDescription
trace_idbytesindexed16-byte trace ID in hex.
span_idbytesindexed8-byte span ID in hex.
trace_flagsu64W3C trace flags bitmask. Stored only.

Instrumentation scope

Metadata about the library that produced the log. Stored but not indexed — available in results but not searchable.
FieldTypeDescription
scope_nametextInstrumentation library name.
scope_versiontextInstrumentation library version.
scope_attributesjsonScope-level key-value metadata.
scope_dropped_attributes_countu64Dropped scope attributes count.

Indexed vs fast fields

Understanding these two properties helps when querying and designing custom indexes:
  • Indexed — the field is added to an inverted index and is searchable via text queries. When indexed: false, you cannot use the field in search predicates.
  • Fast — the field is stored in column-oriented storage (similar to Lucene DocValues). Enables efficient range queries, aggregations, and sorting. A field can be fast without being indexed, and vice versa.
For example, timestamp_nanos is fast but not indexed — Quickwit uses it for time-range partitioning, not text search.

Tokenizers

The index uses two tokenizer strategies:
TokenizerBehaviorUsed by
rawNo processing. The entire value is one token. Best for exact-match fields.service_name, severity_text, attributes, resource_attributes
defaultSplits on whitespace and punctuation, lowercases. Best for free-text search.body

Query examples

# Full-text search in the log body (default search field)
body.message:timeout

# Exact severity match
severity_text:ERROR

# Numeric severity range (all WARN and above)
severity_number:[13 TO *]

# Filter by service
service_name:api-gateway

# Search structured attributes (exact match)
attributes.http.method:POST

# Correlate by trace ID
trace_id:abc123def456...

Example payload

{
  "timestamp_nanos": 1776340800000000000,
  "observed_timestamp_nanos": 1776340800000000000,
  "severity_text": "INFO",
  "severity_number": 9,
  "body": { "message": "User logged in" },
  "service_name": "frontend",
  "attributes": { "user_id": "alice" },
  "resource_attributes": { "service.name": "frontend", "host.name": "node-1" },
  "trace_id": "4bf92f3577b34da6a3ce929d0e0e4736",
  "span_id": "00f067aa0ba902b7",
  "trace_flags": 1,
  "dropped_attributes_count": 0,
  "resource_dropped_attributes_count": 0,
  "scope_name": "my-library",
  "scope_version": "1.0.0",
  "scope_attributes": {},
  "scope_dropped_attributes_count": 0
}
Because the schema uses strict mode, any fields not defined in the schema are rejected. When sending logs manually, ensure your payload only includes fields that match the schema. When using an OpenTelemetry collector, Quickwit handles field mapping automatically.

Custom indexes

Create the index in Quickwit with whatever schema fits your data, then configure how Logwiz maps its fields in Per Index configuration.

Next steps