Problem with "\n" character with tcp output plugin

Hello,
on my logstash pipeline I receive logs that contain "\n" character as follows

"message" : "aaaa\nbbbbb"

When sending this log using tcp output plugin, the destination receives the log on two lines

aaaa
bbbb

Is there a way (an option) that make logstash send this like a single line
any input will help
regards

The default codec on a tcp input is line, and the default delimiter for that codec is \n.

If you want to use a different delimiter then set the codec in the input and specify the delimiter option on it.

tcp is a stream oriented protocol, not message oriented. The data must be delimited to create messages.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.