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:
port => 5959
codec => json
hosts => ["localhost:9200"]
index => "tests"
user => "elastic"
password => "xxxxxx"
codec => rubydebug
your help is appreciated