# How to get Beat client ip in Logstash

**URL:** <https://discuss.elastic.co/t/how-to-get-beat-client-ip-in-logstash/111264>\
**Category:** Logstash\
**Created:** [December 12, 2017, 8:00am UTC](https://discuss.elastic.co/t/how-to-get-beat-client-ip-in-logstash/111264 "2017-12-12T08:00:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![saravanan\_kutty](https://avatars.discourse-cdn.com/v4/letter/s/90db22/32.png) [@saravanan\_kutty](https://discuss.elastic.co/u/saravanan_kutty)\
**Post date:** [December 12, 2017, 8:00am UTC](https://discuss.elastic.co/t/how-to-get-beat-client-ip-in-logstash/111264/1 "2017-12-12T08:00:12Z")

</div>

Hi,

I am new to ELK and trying to get the IP of the File Beat Client in Kibana through Logstash. tried various option which is available in the forum but unable to find the workable solution. Using ELK 5.6.4.

Any help in this regards is appreciated.

---

<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:** [December 12, 2017, 8:17am UTC](https://discuss.elastic.co/t/how-to-get-beat-client-ip-in-logstash/111264/2 "2017-12-12T08:17:55Z")

</div>

Judging by [https://github.com/logstash-plugins/logstash-input-beats/issues/180](https://github.com/logstash-plugins/logstash-input-beats/issues/180) this is available in Logstash 6 as `[@metadata][ip_address]`.

---

<div class="post-metadata">

**Author:** ![saravanan\_kutty](https://avatars.discourse-cdn.com/v4/letter/s/90db22/32.png) [@saravanan\_kutty](https://discuss.elastic.co/u/saravanan_kutty)\
**Post date:** [December 12, 2017, 11:10am UTC](https://discuss.elastic.co/t/how-to-get-beat-client-ip-in-logstash/111264/3 "2017-12-12T11:10:51Z")

</div>

upgraded Logstash to 6 and tried [@metadata][ip\_address] , getting remote ip as 127.0.0.1 which is not right ip.

---

<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:** [January 9, 2018, 11:11am UTC](https://discuss.elastic.co/t/how-to-get-beat-client-ip-in-logstash/111264/4 "2018-01-09T11:11:15Z")

</div>

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