I'm using the newest version of Logstash 5.3.1.
While I am using a tcp input plugins, it shows that the real codec being used is not the same one with my config file.
To confirm this question, I add a log output in the source code of tcp input plugins - tcp.rb:
Because in this input we assume that an event is separated by a new line, if you were using the plain or the json codec, the plugin would never know when or where to split the events and will just keep buffering data. For the user experience we make the assumptions that your events will be split by \n, but you can change that behavior in both codec by configuring the delimiter option, see the jsonlines documentation
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.