# Unable to get AWS EC2 discovery to work with Logstash

**URL:** <https://discuss.elastic.co/t/unable-to-get-aws-ec2-discovery-to-work-with-logstash/13521>\
**Category:** Elasticsearch\
**Created:** [September 9, 2013, 3:29pm UTC](https://discuss.elastic.co/t/unable-to-get-aws-ec2-discovery-to-work-with-logstash/13521 "2013-09-09T15:29:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ralph\_Trickey\_2](https://avatars.discourse-cdn.com/v4/letter/r/f19dbf/32.png) [@Ralph\_Trickey\_2](https://discuss.elastic.co/u/Ralph_Trickey_2)\
**Post date:** [September 9, 2013, 3:29pm UTC](https://discuss.elastic.co/t/unable-to-get-aws-ec2-discovery-to-work-with-logstash/13521/1 "2013-09-09T15:29:06Z")

</div>

I've also tried posting to the logstash group with no answer. I'm hoping  
it's something simple otherwise I'll have to write my own discovery  
mechanism.

I have been totally unable to get AWS EC2 discovery to work. If I change to  
unicast discovery, it works fine.

The same configuration works fine from ElasticSearch, it doesn't work from  
Logstash.

Any help at all is appreciated, this is driving my nuts.

I'm starting logstash with this.

lsindexer.sh  
java -cp  
"elasticsearch-0.20.6/plugins/cloud-aws/elasticsearch-cloud-aws-1.11.0/\*"  
-jar logstash-1.1.13-monolithic.jar agent -f lsindexer.conf --log  
/var/log/lsindexer.log

elasticsearch.yml  
...  
cloud.aws.region: us-west-2

discovery.type: ec2  
discovery.ec2.groups: Cabin  
#discovery.ec2.tags.stage: dev  
discovery.ec2.ping\_timeout: 20

lsindexer.conf  
...  
output {

# stdout { debug =\> true debug\_format =\> "json"}

elasticsearch {  
}  
}

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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:** [July 6, 2017, 2:17am UTC](https://discuss.elastic.co/t/unable-to-get-aws-ec2-discovery-to-work-with-logstash/13521/2 "2017-07-06T02:17:27Z")

</div>

Closed on July 6, 2017, 2:17am UTC


