Can't send data to logstash via tcp port 5959

Hi guys,

I am trying to send to logstash using tcp port,

It is working when the code is running on localhost,

however, it should also run remotely.

Maybe I need to use different plugin? (or just try to use rest api?)

When I run: netstat -plnt
I can see port 5959 is not available from outside the server:

tcp6 0 0 :::5959 :::* LISTEN 6400/java

logstash config file is:

input {
tcp {
port => 5959
codec => json
output {
elasticsearch {
hosts => ["localhost:9200"]
index => "tests"
user => "elastic"
password => "xxxxxx"

stdout {
codec => rubydebug

your help is appreciated :slight_smile:

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.