Replies: 1 comment 4 replies
-
Could you try v0.40.1 of Vector? There was a bug fix to |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
We have a Kubernetes cluster v1.29.5, Vector 0.40.0 (helm chart), OpenSearch 2.15 and we want to get pod logs, where the .message field can contain data in JSON format, as well as multi-line data. Many services, many logs in different formats.
The idea according to which we configure Vector:
Using the remap transform, we determine the type of data in the .message field (JSON or not) in order to parse the JSON, remove unnecessary fields, etc.
Simply put: K8s - remap (parse .message as JSON if .message is_json = true, otherwise do nothing and pass the event on) - reduce (if .message matches the regexp pattern, otherwise do nothing and pass the event on) - Opensearch.
The main problem is that after reduce we lose some fields.
We performed the following experiment. In parallel, we took data from each transform in Opensearch and saw duplicate events in it, which differ in the set of fields (see to screens).
screen_1
screen_2
screen_3
The screenshots show that the events are different, processed by different transforms, and their set of fields is different (.kubernetes.node_labels, .kubernetes.pod_labels, etc.)
We want to understand, is this normal behavior, or a bug? How can we achieve behavior when after the reduce transform we will save the fields that get into the reduce input?
Here is the Vector configuration, from which we wanted to get the expected behavior.
values.yaml:
Beta Was this translation helpful? Give feedback.
All reactions