Closed joker9357 closed 3 years ago
This is most likely related to new framing feature, see https://vector.dev/highlights/2021-10-06-source-codecs/
Even tho the docs aren't really clear on this, the default value for the framing.method
seems to be character_delimited
, and my guess is that the default delimiter is \n
. I would tinkle with these settings if I was you.
Judging by the code https://github.com/vectordotdev/vector/blob/master/src/codecs/mod.rs#L160 the default value seems to be newline_delimited, which underlying is actually character_delimited with \n
as delimiter.
The confusing part is that this is actually logged as characted_delimited when the max_length is being hit.
@jeromekleinen-kbc And @pablosichert
Thanks for you reply, and try to use
framing.method = "bytes"
in source block
But the message still separate in 4 parts at random character.
Maybe because my message is too long so it is sent by several UDP packages, how to fetch the message as a whole package?
Ok find the ticket #9564 thanks
Closed as part of https://github.com/vectordotdev/vector/issues/9564
Thanks again for reporting this @joker9357 .
Vector Configuration File
Debug Output
Expected Behavior
Actual Behavior
Example Data
Additional Context
References
0.16.1 everything is OK, but after 0.17.0 it begin to read xml file line by line