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

Offen
#219 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
48/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
grafana, typescript

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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
Vorherrschende Sprache
TypeScript
Sterne
76
Forks
45
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus quickwit-oss/quickwit-datasource

Alle Issues in quickwit-oss/quickwit-datasource

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.