Hello Team,
I am using Logstash to forward events using the TCP output plugin. When I configure the output with JSON codec, data is not being sent to the receiver.
output {
tcp {
host => "hostName"
port => 1415
codec => "json"
}
}
I also tried without quotes
codec => json
My Requirement
-
I want to send structured JSON output
-
I do not want to flatten everything into one string
-
I am forwarding data over TCP
-
With
codec => json, output stops working
My Question
-
Why does
codec => jsonin TCP output not send data? -
Is there any receiver-side requirement for JSON codec to work?
-
Is there any framing / delimiter issue with JSON over TCP?
-
What is the correct way to send proper JSON over TCP using Logstash?