You said you configured Logstash to receive logs using TCP, which is the TCP input plugin, but the error you shared happens when Logstash is sending something using the TCP output plugin, so you need to provide more context on what is your issue.
I have 2 pipelines configured with tcp input plugin over 6625 6632 and 6633 ports.
All the ports reads data and send it to a single output port 6626 over tcp output plugin.
Based on type parsing is taken care accordingly.
shipper 1:
input {
tcp {
port => 6632
#codec => "json_lines"
type => "dscommons_sql_new_logging"
}
tcp {
port => 6633
#codec => "json_lines"
type => "dscommons_project_new_logging"
}
}
filter {
}
output {
if [type] == "dscommons_project_new_logging" or [type] == "dscommons_sql_new_logging" {
tcp {
host => "{{logstash_parser}}"
port => 6626
codec => "json_lines"
}
}
}
Shipper 2:
input{
beats{
port => 6626
type => "dscommons"
client_inactivity_timeout => 3600
}
}
filter{
}
output{
if [type] == "dscommons" {
tcp {
host => "{{logstash_parser}}"
port => 6626
codec => "json_lines"
}
}
}
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.