Elastic search cluster with 3 nodes

You can set multiple IPs for logstash in your config. I will change the config above to those IPs

output {
  elasticsearch {
    host => ["192.168.43.1", "192.168.43.2", "192.168.43.3"]
    ...
  }
}