fluent / fluent-bit

Fast and Lightweight Logs and Metrics processor for Linux, BSD, OSX and Windows
https://fluentbit.io
Apache License 2.0
5.82k stars 1.58k forks source link

Missed events from kubernetes_events in Elasticsearch #8633

Closed air3ijai closed 7 months ago

air3ijai commented 7 months ago

Bug Report

Describe the bug kubectl give us much more events than Fluent Bit kubernetes_events plugin logged to Elasticsearch

To Reproduce

Expected behavior

  1. We should get events in Elasticsearch similar to the ones we get by kubectl or Fluent Bit stdout

Your Environment

Additional context We are trying to collect Kubernetes events because they are stored just one hour and then purged and we need to save a whole history.

air3ijai commented 7 months ago

Found the issue in our Kibana Data Views configuration, where we set eventTime as a Timestamp field, which was present in just one event. With @timestamp it works as expected.

Screenshot 2024-03-25 at 16 03 39 Screenshot 2024-03-25 at 15 58 45