DavidL
(David Li)
August 14, 2015, 3:37pm
1
I have two logstash instances on two machines, trying to receive json from to the other,
In the receiver I have:
input {
tcp {
port => 9302
codec => "json"
}
}
And in the sender I have
output{
tcp{
mode => "client"
host => "(Host_IP)"
port => 9302
codec => "json"
}
}
I think there is traffic sometimes, but not as I expected, am I doing something wrong? Thanks!
warkolm
(Mark Walkom)
August 14, 2015, 10:08pm
2
How did you solve this?
Providing the answer might help someone else in the future
DavidL
(David Li)
August 17, 2015, 3:37pm
3
Absolutely
I changed it too the following config, don't know if the change solved the problem but it works for me now
output{
tcp{
mode => "client"
host => "<host_ip>"
port => 5000
codec => "json_lines"
}
}
input {
tcp {
port => 5000
codec => "json_lines"
}
}
2 Likes
Kryten
August 26, 2016, 3:01pm
4
Thank you for posting the answer - this was a big help for me today.
1 Like