# Get node hostname/ip on which the container is hosted

**URL:** <https://discuss.elastic.co/t/get-node-hostname-ip-on-which-the-container-is-hosted/260493>\
**Category:** Beats\
**Tags:** docker, filebeat\
**Created:** [January 8, 2021, 3:41am UTC](https://discuss.elastic.co/t/get-node-hostname-ip-on-which-the-container-is-hosted/260493 "2021-01-08T03:41:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![astrovj](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/astrovj/32/81914_2.png) [@astrovj](https://discuss.elastic.co/u/astrovj)\
**Post date:** [January 8, 2021, 3:41am UTC](https://discuss.elastic.co/t/get-node-hostname-ip-on-which-the-container-is-hosted/260493/1 "2021-01-08T03:41:09Z")

</div>

Is there a way to get node hostname/ip on which the container is hosted using filebeat dynamically, as a field in the ES index. Right now it gives the container id/ip as hostname/ip ? I am not using logstash.

---

<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:** [February 5, 2021, 5:41am UTC](https://discuss.elastic.co/t/get-node-hostname-ip-on-which-the-container-is-hosted/260493/2 "2021-02-05T05:41:12Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
