quickwit-oss / quickwit-oss/quickwit

doc mapper parse error on `otel_logs_v0_7`

Open
#5,343 4 comments 0 reactions 1 assignee View on GitHub

@guilload is already working on this.

Since Oct 10, 2024.

bug otel
Dominant language
Rust
Stars
11.7k
Forks
597
Avg merge
2d 22h
Merged PRs (30d)
37

Description

Describe the bug

According to the log data spec, body field should support any type of data.

The doc mapping of the field is specified as json, but it seems to only accept JSON objects, not JSON arrays.

quickwit-1        | 2024-08-26T08:20:37.205Z  WARN quickwit_indexing::actors::doc_processor: doc mapper parse error: the document contains an array of values but a single value is expected: "body" index_id="otel-logs-v0_7" source_id="_ingest-api-source"

So log records generated by OTEL's official SDK are not indexed properly.

I used logtape, which add body field as array.

Steps to reproduce (if applicable)

Full setup: https://github.com/cometkim/quickwit-tutorial

Expected behavior

Valid OTEL logs must be able to be indexed.

Maybe by supporting more JSON values, or by changing the field type dynamic.

Configuration:

  1. Output of quickwit --version: 0.8.2
  2. The index_config.yaml: The built-in otel_logs_v0_7

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.