# How to get IP of machine in output?

**URL:** <https://discuss.elastic.co/t/how-to-get-ip-of-machine-in-output/39736>\
**Category:** Logstash\
**Created:** [January 21, 2016, 7:14am UTC](https://discuss.elastic.co/t/how-to-get-ip-of-machine-in-output/39736 "2016-01-21T07:14:24Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [January 21, 2016, 6:52pm UTC](https://discuss.elastic.co/t/how-to-get-ip-of-machine-in-output/39736/2 "2016-01-21T18:52:16Z")

</div>

Would the dns filter be helpful? Also, see below.

> [@Record originating IP of filebeats](https://discuss.elastic.co/t/record-originating-ip-of-filebeats/39151):
>
> I currently have a fairly simple setup consisting of running several filebeat instances on various hosts, talking to a central logstash instance, which in turn talks to a ES cluster (6 nodes total, 1 also runs logstash). Currently I only see the hostname of the hosts running filebeat, but I'd like to see the IP as well. Now I know that the hostname is sent by filebeat itself, and I'd prefer the IP address to be based on what logstash sees. Is this currently possible somehow? Otherwise I'd have …

---

_[View the full topic](https://discuss.elastic.co/t/how-to-get-ip-of-machine-in-output/39736)._
