Clarification on Log Payload Size Limit and Truncation Behavior for Datadog Logs Sink #23871
-
QuestionHi Vector team, I'm looking for some clarification regarding the payload size behavior in the According to the Vector documentation, the // The Datadog logs API has a hard payload limit of 5MB.
pub const MAX_PAYLOAD_BYTES: usize = 5_000_000;
pub const BATCH_GOAL_BYTES: usize = 4_250_000;I have a few questions related to this behavior:
Appreciate any insights or best practices you can share for handling large log events in this scenario. Vector ConfigNo response Vector LogsNo response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
|
Hi @EricaJ6
Regarding your other questions: do you think you will have a single log event that exceeds 4MB? That seems like an astronomically large number for a single line, and at that point I'd even question how valuable storing that log line actually is. To answer question To answer question By writing |
Beta Was this translation helpful? Give feedback.
Hi @EricaJ6
#1: There is no way to override this. Looks like it's a Datadog limit, increasing this value probably will only lead to logs being rejected by the DD Api.Regarding your other questions: do you think you will have a single log event that exceeds 4MB? That seems like an astronomically large number for a single line, and at that point I'd even question how valuable storing that log line actually is.
To answer question
#2some more investigation is needed. I'm not sure the what output would be but I think you can artificially replicate it using something like a 6MB line in a file and using thefilesource as an input. I'd wager you get an error log.To answer question
#3: I'd rec…