I try to read an event in Logstash, received via tcp. This event contains line feeds and unfortunately at the logstash filter, where I try to remove the linefeeds via mutate/gsub, I already receive each line one by one as single events. How can I make the logstash input clear, that the entire tcp payload should be treated as one event containing a message with line feeds ?
The tcp input plugin treats each line as an event. You might be able to combine them using a multiline codec with an auto_flush_interval. Or perhaps you could find a way to use an http input plugin instead.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.