I have filebeat and logstash running of different droplets in digitalocean. When I use internal IP of logstash droplet in output.logstash section of filebeat.yml, everything works fine. When I change it to an external IP like IPv4, I get this error.
2019-05-07T04:31:08.874Z ERROR pipeline/output.go:100 Failed to connect to backoff(async(tcp://68.183.156.250:5043)): dial tcp 68.183.156.250:5043: connect: connection refused
2019-05-07T04:31:08.874Z INFO pipeline/output.go:93 Attempting to reconnect to backoff(async(tcp://68.183.156.250:5043)) with 1 reconnect attempt(s)
2019-05-07T04:31:10.918Z ERROR pipeline/output.go:100 Failed to connect to backoff(async(tcp://68.183.156.250:5043)): dial tcp 68.183.156.250:5043: connect: connection refused
2019-05-07T04:31:10.918Z INFO pipeline/output.go:93 Attempting to reconnect to backoff(async(tcp://68.183.156.250:5043)) with 2 reconnect attempt(s)
2019-05-07T04:31:16.830Z ERROR pipeline/output.go:100 Failed to connect to backoff(async(tcp://68.183.156.250:5043)): dial tcp 68.183.156.250:5043: connect: connection refused
2019-05-07T04:31:16.830Z INFO pipeline/output.go:93 Attempting to reconnect to backoff(async(tcp://68.183.156.250:5043)) with 3 reconnect attempt(s)
2019-05-07T04:31:26.495Z ERROR pipeline/output.go:100 Failed to connect to backoff(async(tcp://68.183.156.250:5043)): dial tcp 68.183.156.250:5043: connect: connection refused
2019-05-07T04:31:26.495Z INFO pipeline/output.go:93 Attempting to reconnect to backoff(async(tcp://68.183.156.250:5043)) with 4 reconnect attempt(s)
Please advise. Thanks