# How to define cloud id in logstash config file?

**URL:** <https://discuss.elastic.co/t/how-to-define-cloud-id-in-logstash-config-file/135584>\
**Category:** Logstash\
**Created:** [June 12, 2018, 6:49pm UTC](https://discuss.elastic.co/t/how-to-define-cloud-id-in-logstash-config-file/135584 "2018-06-12T18:49:23Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![jakelandis](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jakelandis/32/36163_2.png) [@jakelandis](https://discuss.elastic.co/u/jakelandis)\
**Post date:** [June 12, 2018, 9:06pm UTC](https://discuss.elastic.co/t/how-to-define-cloud-id-in-logstash-config-file/135584/2 "2018-06-12T21:06:39Z")

</div>

> Will this "data-out.conf" find the cloud ES instance by checking against main "logstash.conf"?

I assume you mean .yml, not .conf ? (if so...)

The Elasticsearch settings in logstash.yml are only applicable to monitoring, management, and modules. You still have to define your hosts (and credentials if needed) in the `output {` section of your configuration [1].

If have 1 instance/cluster of Elasticsearch , it does become a bit redundant to redefine the same connection everywhere. Also note, the `output {` section does not currently allow for a cloud\_id , you will need to use the host name(s) directly.

[1]

> **[Elasticsearch output plugin | Logstash Reference \[8.11\] | Elastic](https://www.elastic.co/guide/en/logstash/current/plugins-outputs-elasticsearch.html#plugins-outputs-elasticsearch-hosts)**

---

_[View the full topic](https://discuss.elastic.co/t/how-to-define-cloud-id-in-logstash-config-file/135584)._
