# Elasticsearch and logstash on AWS EC2

**URL:** <https://discuss.elastic.co/t/elasticsearch-and-logstash-on-aws-ec2/253052>\
**Category:** Elasticsearch\
**Created:** [October 22, 2020, 6:21pm UTC](https://discuss.elastic.co/t/elasticsearch-and-logstash-on-aws-ec2/253052 "2020-10-22T18:21:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kishan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kishan/32/53595_2.png) [@Kishan](https://discuss.elastic.co/u/Kishan)\
**Post date:** [October 22, 2020, 6:21pm UTC](https://discuss.elastic.co/t/elasticsearch-and-logstash-on-aws-ec2/253052/1 "2020-10-22T18:21:04Z")

</div>

HI,

I am setting up elasticsearch and logstash using AWS EC2 with auto scaling option .  
Private IPs of EC2 are dynamic for each EC2 Instance creation during Auto scaling .  
i am looking for any information on how to configure elasticsearch.yml with no/minimum IP addresses.  
Also looking for info on logstash configuration on what elasticsearch IPs should provided in the conf file.

It would be great if there are any pointers on how to it and samples of elasticsearch and logstash config files .

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 19, 2020, 6:21pm UTC](https://discuss.elastic.co/t/elasticsearch-and-logstash-on-aws-ec2/253052/2 "2020-11-19T18:21:05Z")

</div>

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