# Problems connecting an ec2 instances with logstash on to the elastic cloud

**URL:** <https://discuss.elastic.co/t/problems-connecting-an-ec2-instances-with-logstash-on-to-the-elastic-cloud/220865>\
**Category:** Elastic Cloud Enterprise (ECE)\
**Created:** [February 25, 2020, 1:47pm UTC](https://discuss.elastic.co/t/problems-connecting-an-ec2-instances-with-logstash-on-to-the-elastic-cloud/220865 "2020-02-25T13:47:17Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Alex\_Piggott](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alex_piggott/32/11053_2.png) [@Alex\_Piggott](https://discuss.elastic.co/u/Alex_Piggott)\
**Post date:** [February 26, 2020, 2:17pm UTC](https://discuss.elastic.co/t/problems-connecting-an-ec2-instances-with-logstash-on-to-the-elastic-cloud/220865/5 "2020-02-26T14:17:39Z")

</div>

Is this the problem? [Enabling X-Pack in Logstash 7 gives me this error](https://discuss.elastic.co/t/enabling-x-pack-in-logstash-7-gives-me-this-error/176671/8)

Do you have a field called `xpack.monitoring.elasticsearch.hosts` enabled anywhere? (or something like that?)

---

_[View the full topic](https://discuss.elastic.co/t/problems-connecting-an-ec2-instances-with-logstash-on-to-the-elastic-cloud/220865)._
