# How can I get Logstash host name in filbeat for ELK docker container

**URL:** <https://discuss.elastic.co/t/how-can-i-get-logstash-host-name-in-filbeat-for-elk-docker-container/61640>\
**Category:** Beats\
**Created:** [September 27, 2016, 7:51pm UTC](https://discuss.elastic.co/t/how-can-i-get-logstash-host-name-in-filbeat-for-elk-docker-container/61640 "2016-09-27T19:51:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rai](https://avatars.discourse-cdn.com/v4/letter/r/67e7ee/32.png) [@rai](https://discuss.elastic.co/u/rai)\
**Post date:** [September 27, 2016, 7:51pm UTC](https://discuss.elastic.co/t/how-can-i-get-logstash-host-name-in-filbeat-for-elk-docker-container/61640/1 "2016-09-27T19:51:14Z")

</div>

I have created a docker container for ELK stack (mean ELK components are running on same container) and another docker container for filebeat and both containers are running on different physical machines. My question is what should I use for host in filebeat configuration file as in real time, I might not be knowing the ip address of logstash server.  
Any help ?  
Thanks  
Rai

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [September 28, 2016, 5:49am UTC](https://discuss.elastic.co/t/how-can-i-get-logstash-host-name-in-filbeat-for-elk-docker-container/61640/2 "2016-09-28T05:49:01Z")

</div>

Use a DNS name and not an IP address?

---

<div class="post-metadata">

**Author:** ![rai](https://avatars.discourse-cdn.com/v4/letter/r/67e7ee/32.png) [@rai](https://discuss.elastic.co/u/rai)\
**Post date:** [September 28, 2016, 6:25pm UTC](https://discuss.elastic.co/t/how-can-i-get-logstash-host-name-in-filbeat-for-elk-docker-container/61640/3 "2016-09-28T18:25:52Z")

</div>

thanks.

---

<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:** [October 18, 2016, 7:51pm UTC](https://discuss.elastic.co/t/how-can-i-get-logstash-host-name-in-filbeat-for-elk-docker-container/61640/4 "2016-10-18T19:51:19Z")

</div>

This topic was automatically closed after 21 days. New replies are no longer allowed.
