采集socket源消息,怎么消除换行符
#22141
-
例如以下消息体message追加的\n |
Beta Was this translation helpful? Give feedback.
Answered by
jszwedko
Jan 9, 2025
Replies: 1 comment 3 replies
-
Can you share the configuration for the |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Got it, thanks! Yes, sending a message that ends with a newline with
nc
will result in Vector receiving the message with a newline. You can use aremap
transform to trim it like:See https://vector.dev/docs/reference/configuration/tran…