# Logash ip address in ELastic search

**URL:** https://discuss.elastic.co/t/logash-ip-address-in-elastic-search/207987
**Category:** Logstash
**Created:** [November 15, 2019, 2:48am UTC](https://discuss.elastic.co/t/logash-ip-address-in-elastic-search/207987 "2019-11-15T02:48:14Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Tejesh](https://avatars.discourse-cdn.com/v4/letter/t/e9c0ed/32.png) [@Tejesh](https://discuss.elastic.co/u/Tejesh)
#### Post date: [November 15, 2019, 2:48am UTC](https://discuss.elastic.co/t/logash-ip-address-in-elastic-search/207987/1 "2019-11-15T02:48:14Z")

</div>

i have 6 logstash instances processing events to elastic search .Is there a way that i can get the Logstash ip from which the event is processed to elastic search as a field

---

<div class="post-metadata">

### Author: ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)
#### Post date: [November 15, 2019, 2:43pm UTC](https://discuss.elastic.co/t/logash-ip-address-in-elastic-search/207987/2 "2019-11-15T14:43:19Z")

</div>

You could set the IP address as an environment variable for the logstash process then reference it from mutate+add\_field.

---

<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: [December 13, 2019, 2:43pm UTC](https://discuss.elastic.co/t/logash-ip-address-in-elastic-search/207987/3 "2019-12-13T14:43:19Z")

</div>

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