Open PaulFurtado opened 5 months ago
Hmmm, this is indeed puzzling.
The code does work most of the time, so perhaps this is in fact related to it being an oversized record... although in that, it should fail way before this point. 😂
I'll see if we can reproduce this locally.
@tobz happy to help here too, is there an easy place we can update the code to log the source record that caused the problem? Would be great if we could provide you a reproducer
A note for the community
Problem
On our vector configs that handle kubernetes audit log entries, we are frequently hitting this "failed to decode record immediately after encoding it" error from here: https://github.com/vectordotdev/vector/blob/v0.37.0/lib/vector-buffers/src/variants/disk_v2/writer.rs#L535-L543
Configuration
My suspicion is that:
is causing us to pull a field out of the audit log into the top-level of the vector log entry that vector can't handle, but I'm really not sure.
Additional Context
No response
References
No response