I was just wondering if logstash can auto discover elastic search nodes using ec2 discovery on aws. For elastic search we need to use elastic search cloud aws plugin (https://github.com/elastic/elasticsearch-cloud-aws). But I could not find any documentation on how to enable logstash's elastic search output plugin with the ec2 discovery feature.
One way I can suggest (but not really an answer to your original question) is use ELB in front of ES. If you autoscale + ELB in front of ES stack, you will get load balance. The benefit of ELB is you can attach EC2 to it. Another way is have your cloudformation stack to update your DNS (A record in this case) in Route 53, so that logstash is only given "myelasticsearchcluster.xyz.com" and it can do cheap round-robin if you don't want to pay the extra cost of ELB.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.