# Is it possible to gain an ip address from a hostname in forwarded event?

**URL:** <https://discuss.elastic.co/t/is-it-possible-to-gain-an-ip-address-from-a-hostname-in-forwarded-event/341029>\
**Category:** Beats\
**Tags:** winlogbeat\
**Created:** [August 17, 2023, 3:33pm UTC](https://discuss.elastic.co/t/is-it-possible-to-gain-an-ip-address-from-a-hostname-in-forwarded-event/341029 "2023-08-17T15:33:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ninom](https://avatars.discourse-cdn.com/v4/letter/n/d26b3c/32.png) [@ninom](https://discuss.elastic.co/u/ninom)\
**Post date:** [August 17, 2023, 3:33pm UTC](https://discuss.elastic.co/t/is-it-possible-to-gain-an-ip-address-from-a-hostname-in-forwarded-event/341029/1 "2023-08-17T15:33:22Z")

</div>

For context:

windows machine -\> server -\> winlogbeats

Not sure if there is a way to use either dns lookup or possibly some other method for the server to get the ip address of the windows machine from a forwarded windows event containing its hostname.

---

<div class="post-metadata">

**Author:** ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)\
**Post date:** [August 17, 2023, 4:46pm UTC](https://discuss.elastic.co/t/is-it-possible-to-gain-an-ip-address-from-a-hostname-in-forwarded-event/341029/2 "2023-08-17T16:46:47Z")

</div>

If you were to perform a `nslookup <winlog.computer_name>` does that return the IP that you are expecting?

If so then you could integrate Logstash into your data pipeline and apply the [DNS](https://www.elastic.co/guide/en/logstash/8.9/plugins-filters-dns.html) filter to perform the lookup enrichment for you.

Beats does have a DNS processor, but it only supports reverse IP lookups. There is an open [enhancement request](https://github.com/elastic/beats/issues/11416) to allow standard A/AAAA lookups.

---

<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:** [September 14, 2023, 6:47pm UTC](https://discuss.elastic.co/t/is-it-possible-to-gain-an-ip-address-from-a-hostname-in-forwarded-event/341029/3 "2023-09-14T18:47:40Z")

</div>

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