# Elasticsearch output plugin

**URL:** <https://discuss.elastic.co/t/elasticsearch-output-plugin/23986>\
**Category:** Logstash\
**Created:** [June 19, 2015, 1:03pm UTC](https://discuss.elastic.co/t/elasticsearch-output-plugin/23986 "2015-06-19T13:03:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tgdesrochers](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tgdesrochers/32/51322_2.png) [@tgdesrochers](https://discuss.elastic.co/u/tgdesrochers)\
**Post date:** [June 19, 2015, 1:03pm UTC](https://discuss.elastic.co/t/elasticsearch-output-plugin/23986/1 "2015-06-19T13:03:40Z")

</div>

I currently have this as my output for logs to my elasticsearch cluster:

output {  
elasticsearch {  
bind\_host =\> "10.1.55.4"  
host =\> "10.1.55.8,10.1.55.9,10.1.55.10,10.1.55.11,10.1.55.12,10.1.55.13,10.1.55.14,10.1.55.15,10.1.55.16,10.1.55.17"  
cluster =\> "CLUSTER-NAME"  
embedded =\> false  
template =\> "TEMPLATE"  
template\_name =\> "TEMPLATE-NAME"  
template\_overwrite =\> true  
index =\> "INDEX"  
}  
}

I'd like to replace the host =\> field with the domain name for the ES cluster. I'd like to do this to make it easy to spin up new nodes with minimal changes to configuration files. I tried to change the host =\> field from IP address to domain, logstash starts but doesn't seem to process any data. Is this possible to do? Do I have to use the FQDN or can I use just the shortname.

Thanls

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [June 20, 2015, 1:29am UTC](https://discuss.elastic.co/t/elasticsearch-output-plugin/23986/2 "2015-06-20T01:29:34Z")

</div>

Host is an array, so you need to wrap it in [].

You can use either the FQDN or the short name, just as long as they resolve.

---

<div class="post-metadata">

**Author:** ![tgdesrochers](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tgdesrochers/32/51322_2.png) [@tgdesrochers](https://discuss.elastic.co/u/tgdesrochers)\
**Post date:** [June 20, 2015, 12:56pm UTC](https://discuss.elastic.co/t/elasticsearch-output-plugin/23986/3 "2015-06-20T12:56:03Z")

</div>

Thanks. It worked.

---

<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, 5:36am UTC](https://discuss.elastic.co/t/elasticsearch-output-plugin/23986/4 "2017-07-06T05:36:59Z")

</div>


