# How to get IP Address displayed in the Dynatrace alert

**URL:** <https://community.dynatrace.com/t/how-to-get-ip-address-displayed-in-the-dynatrace-alert/45574>\
**Category:** Alerting\
**Tags:** problems-classic\
**Created:** [May 14, 2024, 2:55pm UTC](https://community.dynatrace.com/t/how-to-get-ip-address-displayed-in-the-dynatrace-alert/45574 "2024-05-14T14:55:51Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![sundarv1](https://avatars.discourse-cdn.com/v4/letter/s/65b543/32.png) [@sundarv1](https://community.dynatrace.com/u/sundarv1)\
**Post date:** [May 14, 2024, 2:55pm UTC](https://community.dynatrace.com/t/how-to-get-ip-address-displayed-in-the-dynatrace-alert/45574/1 "2024-05-14T14:55:51Z")

</div>

How to get IP Address displayed in the Dynatrace alert. Currently when incident is generated from log - only hostname is getting displayed and not the IP Address.

Please find the below information coming from Dynatrace. IP Address is coming. How to get dynatrace primary IP.

displayed

Please find the below setting in console. I did try to use dt.host.ip and but it is not coming.

 ![Screenshot 2024-05-15 003139.png](https://global.discourse-cdn.com/dynatrace/original/2X/1/1857bf630ae05d4a7adc419b5e7f60f283c8a45c.png)  
 ![Setting.png](https://global.discourse-cdn.com/dynatrace/original/3X/a/e/aeb6f3dbef32ebb48805290ff0e7f88fd8bfa741.png)

---

<div class="post-metadata">

**Author:** ![Eric\_Yu](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/eric_yu/32/20360_2.png) [@Eric\_Yu](https://community.dynatrace.com/u/Eric_Yu)\
**Post date:** [May 14, 2024, 3:29pm UTC](https://community.dynatrace.com/t/how-to-get-ip-address-displayed-in-the-dynatrace-alert/45574/2 "2024-05-14T15:29:13Z")

</div>

There’s no property to pull that field for the problem, but you could consider using a Host renaming rule to include the IP with the hostname.

> **[Set custom host names](https://docs.dynatrace.com/docs/observe/infrastructure-observability/hosts/configuration/set-custom-host-names-in-dynamic-environments)**
>
> Learn how to change a monitored host name.

```markup
{Host:DetectedName} [{Host:IpAddress}]

```

---

<div class="post-metadata">

**Author:** ![sundarv1](https://avatars.discourse-cdn.com/v4/letter/s/65b543/32.png) [@sundarv1](https://community.dynatrace.com/u/sundarv1)\
**Post date:** [May 15, 2024, 3:29am UTC](https://community.dynatrace.com/t/how-to-get-ip-address-displayed-in-the-dynatrace-alert/45574/3 "2024-05-15T03:29:45Z")

</div>

Hi Eric

I did the same and but it is not working.

Thanks

Sundar.v

 ![Host IP.png](https://global.discourse-cdn.com/dynatrace/original/2X/6/61b03550a197db213a75b43fa166522258e833f5.png)  
 ![Hostname.png](https://global.discourse-cdn.com/dynatrace/original/3X/f/c/fcf8d1f4465e9dbd636af86308f3f01c15fef258.png)

---

<div class="post-metadata">

**Author:** ![Esam\_Eid](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/esam_eid/32/167_2.png) [@Esam\_Eid](https://community.dynatrace.com/u/Esam_Eid)\
**Post date:** [May 15, 2024, 4:50am UTC](https://community.dynatrace.com/t/how-to-get-ip-address-displayed-in-the-dynatrace-alert/45574/4 "2024-05-15T04:50:13Z")

</div>

Hi&nbsp;[@sundarv1](https://community.dynatrace.com/user/74312)&nbsp;,

add host naming rules for you hostnames

 ![Esam_Eid_0-1715748401722.png](https://global.discourse-cdn.com/dynatrace/original/2X/3/353b9b3c4b9bd7064acf9eb7128d46ede7d6e513.png)

Regards,  
Esam Eid

---

<div class="post-metadata">

**Author:** ![sundarv1](https://avatars.discourse-cdn.com/v4/letter/s/65b543/32.png) [@sundarv1](https://community.dynatrace.com/u/sundarv1)\
**Post date:** [May 15, 2024, 5:10am UTC](https://community.dynatrace.com/t/how-to-get-ip-address-displayed-in-the-dynatrace-alert/45574/5 "2024-05-15T05:10:42Z")

</div>

How do we do this only one host

---

<div class="post-metadata">

**Author:** ![Esam\_Eid](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/esam_eid/32/167_2.png) [@Esam\_Eid](https://community.dynatrace.com/u/Esam_Eid)\
**Post date:** [May 15, 2024, 5:21am UTC](https://community.dynatrace.com/t/how-to-get-ip-address-displayed-in-the-dynatrace-alert/45574/6 "2024-05-15T05:21:32Z")

</div>

you can add conditions, for example:

add condition where host IPaddress equlas x.x.x.x

 ![Esam_Eid_0-1715750427301.png](https://global.discourse-cdn.com/dynatrace/original/2X/1/1ab0b57fe099df96a0ca8f34fb1028da4df6d378.png)

---

<div class="post-metadata">

**Author:** ![sundarv1](https://avatars.discourse-cdn.com/v4/letter/s/65b543/32.png) [@sundarv1](https://community.dynatrace.com/u/sundarv1)\
**Post date:** [May 15, 2024, 2:27pm UTC](https://community.dynatrace.com/t/how-to-get-ip-address-displayed-in-the-dynatrace-alert/45574/7 "2024-05-15T14:27:09Z")

</div>

Thanks. Which IP Address will be displayed - Is it primary IP Address ?.
