You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 12, 2026. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+110Lines changed: 110 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -121,6 +121,7 @@ To configure the Quickwit datasource, you need to provide the following informat
121
121
- The index name.
122
122
- The log message field name (optional). This is the field displayed in the explorer view.
123
123
- The log level field name (optional). It must be a fast field.
124
+
- The related logs or traces datasource (optional). This enables trace-to-logs and log-to-trace links when logs and traces are stored in separate Quickwit indexes.
124
125
125
126
### With Grafana UI
126
127
@@ -141,6 +142,112 @@ datasources:
141
142
logLevelField: severity_text
142
143
```
143
144
145
+
### Logs and traces in separate indexes
146
+
147
+
When logs and traces are stored in different Quickwit indexes, configure one datasource per index and link them with `logsDatasourceUid` and `tracesDatasourceUid`.
148
+
149
+
```yaml
150
+
apiVersion: 1
151
+
152
+
datasources:
153
+
- name: Quickwit Logs
154
+
uid: quickwit-logs
155
+
type: quickwit-quickwit-datasource
156
+
url: http://localhost:7280/api/v1
157
+
jsonData:
158
+
index: 'otel-logs-v0_9'
159
+
logMessageField: body.message
160
+
logLevelField: severity_text
161
+
tracesDatasourceUid: quickwit-traces
162
+
tracesDatasourceName: Quickwit Traces
163
+
164
+
- name: Quickwit Traces
165
+
uid: quickwit-traces
166
+
type: quickwit-quickwit-datasource
167
+
url: http://localhost:7280/api/v1
168
+
jsonData:
169
+
index: 'otel-traces-v0_9'
170
+
logsDatasourceUid: quickwit-logs
171
+
logsDatasourceName: Quickwit Logs
172
+
```
173
+
174
+
## Traces
175
+
176
+
The query editor has two trace query types:
177
+
178
+
- **Trace search** scans matching spans and returns one row per trace. Use this to find trace IDs by Lucene query, service, operation, status, or attributes.
179
+
- **Traces** returns a full trace frame for Grafana's trace viewer. Use this with a trace ID query such as `trace_id:abc123`.
180
+
181
+
The trace parser expects Quickwit OpenTelemetry trace fields such as:
return`(span_status.code:Error OR span_status.code:ERROR OR span_status.code:error OR span_status.code:STATUS_CODE_ERROR OR span_status.code:2 OR span_attributes.error:true OR span_attributes.otel.status_code:ERROR)`
401
+
case"ok":
402
+
return`(span_status.code:Ok OR span_status.code:OK OR span_status.code:ok OR span_status.code:STATUS_CODE_OK OR span_status.code:1)`
403
+
case"unset":
404
+
return`(span_status.code:Unset OR span_status.code:UNSET OR span_status.code:unset OR span_status.code:STATUS_CODE_UNSET OR span_status.code:0)`
0 commit comments