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

Đang mở
#219 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
grafana, typescript
Lĩnh vực
backend, observability

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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
Ngôn ngữ chính
TypeScript
Star
76
Fork
45
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của quickwit-oss/quickwit-datasource

Tất cả issue của quickwit-oss/quickwit-datasource

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.