Missing or malformed log fields for entries fetched by Grafana's "Scroll to load more" functionality

Aperta
#219 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
grafana, typescript

Direzione di ricerca

Start by tracing the datasource query path used by Grafana's “Scroll to load more” behavior, then compare how fields are assembled for the initial fetch and subsequent fetches. Use the linked index and log files to reproduce the missing Attributes.* fields in the additional entries; done means those fields appear correctly, with malformed values investigated if reproducible.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

The datasource limits the initial number of log entries fetched, 100 entries by default. When additional log entries are fetched through the "Scroll to load more" functionality, newly-seen log fields that do not appear in the initially-fetched log entries may not show up in the query result.

This issue can be reproduced with the following index and log documents.

To reproduce the issue:

  • Set up a Quickwit datasource with the message field as the Message field name
  • Execute a * query against the datasource, limited to only fetch 36 lines of logs (in Tail mode)
  • Scroll down the query result; the last entry should be [#6] Type A. Click "Scroll to load more".
  • Five additonal log entries should show up. When expanding the [#4] Type B entry, none of its Attributes.* fields show up.

On the following image, the same log entry shows different logs depending on how many log entries are part of the initial fetch (left: all logs are part of the initial fetch, right: entries #5 to #1 are part of the additional fetch).
Image

We also have gotten reports about malformed log fields where the content of a log field from additional log entries may contain the wrong value, but we have not been able to reproduce this case with dummy logs.

Reproduced with:

  • Quickwit v0.8.2
  • Quickwit datasource plugin v0.6.3
  • Grafana v13.2.4
Lingua principale
TypeScript
Stelle
76
Fork
45
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di quickwit-oss/quickwit-datasource

Tutte le issue di quickwit-oss/quickwit-datasource

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.