# Add Remote IP address in winlogbeat data

**URL:** <https://discuss.elastic.co/t/add-remote-ip-address-in-winlogbeat-data/126912>\
**Category:** Logstash\
**Created:** [April 5, 2018, 11:58am UTC](https://discuss.elastic.co/t/add-remote-ip-address-in-winlogbeat-data/126912 "2018-04-05T11:58:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![suchand](https://avatars.discourse-cdn.com/v4/letter/s/74df32/32.png) [@suchand](https://discuss.elastic.co/u/suchand)\
**Post date:** [April 5, 2018, 11:58am UTC](https://discuss.elastic.co/t/add-remote-ip-address-in-winlogbeat-data/126912/1 "2018-04-05T11:58:13Z")

</div>

Hi,

I have added the below mutate filter for adding IP address in winlogbeat index.

mutate{  
add\_field =\> { "remote\_ip" =\> "%{[@metadata][ip\_address]}" }  
}

But it's not getting the output as expected. It's showing like this- "remote\_ip": "%{[@metadata][ip\_address]}",

Can someone please help me to solve this.

---

<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:** [April 6, 2018, 7:40pm UTC](https://discuss.elastic.co/t/add-remote-ip-address-in-winlogbeat-data/126912/2 "2018-04-06T19:40:41Z")

</div>

I don't believe Winlogbeat adds the IP address of the host in the `[@metadata][ip_address]` field.

---

<div class="post-metadata">

**Author:** ![suchand](https://avatars.discourse-cdn.com/v4/letter/s/74df32/32.png) [@suchand](https://discuss.elastic.co/u/suchand)\
**Post date:** [April 7, 2018, 10:15am UTC](https://discuss.elastic.co/t/add-remote-ip-address-in-winlogbeat-data/126912/3 "2018-04-07T10:15:13Z")

</div>

Thanks for your reply.

now I am getting only the hostname. How can I get the IP address? Can you please shed some light on this.

---

<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:** [April 7, 2018, 10:55am UTC](https://discuss.elastic.co/t/add-remote-ip-address-in-winlogbeat-data/126912/4 "2018-04-07T10:55:34Z")

</div>

Have a look at the dns filter.

---

<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:** [May 5, 2018, 10:55am UTC](https://discuss.elastic.co/t/add-remote-ip-address-in-winlogbeat-data/126912/5 "2018-05-05T10:55:41Z")

</div>

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