Repository navigation
QuestionCurrently running v0.44. The upgrade guide for v0.30 mentions I've noticed a behavior with events received through the source socket are treated as the new events (delimited) by the newline character. Changing Vector ConfigNo response Vector LogsNo response |
Replies: 1 comment
|
For TCP with the default The sources:
incoming:
type: socket
mode: tcp
address: 0.0.0.0:9000
decoding:
codec: bytes
framing:
method: newline_delimited
newline_delimited:
max_length: 16384Messages over that limit are discarded. For a persistent TCP connection carrying multiple messages, choose framing that matches the sender's message boundaries, such as a delimiter or length prefix. UDP is different: with the default decoder, each datagram is a frame, and the socket source still has a separate top-level Please don't hesitate to followup in this thread if you have further questions. |
For TCP with the default
bytesdecoder, the default framing is newline-delimited. Changingframing.methodtobytesstops splitting on newlines, but it also means Vector waits for the connection to close before emitting the buffered data as one event.The
bytesframer does not have amax_lengthsetting. To limit newline-delimited TCP messages, use:Messages over that limit are discarded. For a persistent TCP connection carrying multiple messages, choose framing that matches the sender's…