# Infrastructural event ingestion, unknown host (not yet in Dynatrace environment)

**URL:** <https://community.dynatrace.com/t/infrastructural-event-ingestion-unknown-host-not-yet-in-dynatrace-environment/47904>\
**Category:** Alerting\
**Tags:** metric-events, dynatrace-api\
**Created:** [September 23, 2024, 9:22am UTC](https://community.dynatrace.com/t/infrastructural-event-ingestion-unknown-host-not-yet-in-dynatrace-environment/47904 "2024-09-23T09:22:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![xstreur](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/xstreur/32/11968_2.png) [@xstreur](https://community.dynatrace.com/u/xstreur)\
**Post date:** [September 23, 2024, 9:22am UTC](https://community.dynatrace.com/t/infrastructural-event-ingestion-unknown-host-not-yet-in-dynatrace-environment/47904/1 "2024-09-23T09:22:11Z")

</div>

Hello,

I’m looking for a solution to post new events from infrastructural components (Element Managers) that&nbsp; can use the Events API to post new (error) events. I’m trying to post new events but they seem to only accept them if the hostname already exists in the Dynatrace environment. How should I post these events so they will be visible in&nbsp;&nbsp;  
DT so I can use the notifier to send them to a service management solution like ServiceNow.

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [September 23, 2024, 6:56pm UTC](https://community.dynatrace.com/t/infrastructural-event-ingestion-unknown-host-not-yet-in-dynatrace-environment/47904/2 "2024-09-23T18:56:45Z")

</div>

A normal lifecycle is problem problem-opening event resulting in a Dynatrace problem. Problems can be then sent using alerting profiles and integrations to 3rd party tools such as Service Now.

Dynatrace works on the SmartScape entity model. This model can be enriched using [custom topology](https://docs.dynatrace.com/docs/shortlink/topology-model)&nbsp;and then you can send such problem opening events to those entities. So basically you need to create those custom entities first to be able to send events to them and raise problems.

There are also other possible solutions such as&nbsp;sending just log events and having problems created from logs only.

What element manager is the source of your events? Does it know at least a list of the devices it is managing?

---

<div class="post-metadata">

**Author:** ![Peter\_Youssef](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/peter_youssef/32/14668_2.png) [@Peter\_Youssef](https://community.dynatrace.com/u/Peter_Youssef)\
**Post date:** [September 26, 2024, 2:14pm UTC](https://community.dynatrace.com/t/infrastructural-event-ingestion-unknown-host-not-yet-in-dynatrace-environment/47904/3 "2024-09-26T14:14:15Z")

</div>

Hello&nbsp;[@xstreur](https://community.dynatrace.com/user/56094)

**As simple as that** :

1. As long as, the hosts aren’t monitored within the monitoring tenant, you can create custom devices through the Rest Api or the UI as well both are applicable based on your preferences and the best suitable for your team.
2. To create custom devices through Rest Api, create access token with “entities.wite” and use it to create a custom device through Environment APi v2 or the curl command as per preferences.
3. Create access token with “events.ingest” to utilize it while using the API to ingest events into the custom devices.

 ![Peter_Youssef_1-1727358258057.png](https://global.discourse-cdn.com/dynatrace/original/3X/7/c/7c4a6ab0883b546bb114d2e1218ac7857183f480.png)

![Peter_Youssef_0-1727358183983.png](https://global.discourse-cdn.com/dynatrace/optimized/3X/7/d/7d3b37adf804fa8e83feccc5c870d5952e7df75e_2_690x22.png)

 ![Peter_Youssef_2-1727358547561.png](https://global.discourse-cdn.com/dynatrace/original/3X/5/a/5abdfd99310fd5b42cdc2cc167b161adfd04a36d.png)

Then Execute \> upon successful execution \> you should receive one of the below Response codes.

 ![Peter_Youssef_3-1727358693688.png](https://global.discourse-cdn.com/dynatrace/original/3X/2/9/29b5ecd13d10316c5f19d5b66a8b6eefa128c0b7.png)

To create custom device through UI

Under Infrastructure Observability \> Technologies and processes \> Custom Devices

 ![Peter_Youssef_4-1727358804155.png](https://global.discourse-cdn.com/dynatrace/original/3X/3/d/3da3d34cbfd43124e4d6c823388d9271918e32c7.png)

 ![Peter_Youssef_5-1727358848895.png](https://global.discourse-cdn.com/dynatrace/original/2X/1/1c291b81161249cce4e8b2b5758944545061a808.png)

 ![Peter_Youssef_6-1727358918275.png](https://global.discourse-cdn.com/dynatrace/original/3X/8/f/8faee96a9f20f9a6292defb337157471a70ae91c.png)

After that proceed with Events ingestion through Environment Api v2, just an example, you can customize as per actual requirements:

 ![Peter_Youssef_7-1727359111949.png](https://global.discourse-cdn.com/dynatrace/original/3X/5/d/5d9c88b703c1665f330095723cb955870c1e4b3c.png)

 ![Peter_Youssef_8-1727359174489.png](https://global.discourse-cdn.com/dynatrace/original/3X/0/1/01ec3eca1c0eaceacad89ac075d4dc137bc606f2.png)

- you can utilize rest Api externally to create custom devices and ingest events as well without need to access the UI through the generated Curl command from the monitoring tenant.

**Finally**

**You have options to either:**

- **Continue with current integration with ServiceNow to keep posting notifications to SNow URL.**
- **Enable the below options in Dynatrace integration side**

 ![Peter_Youssef_9-1727359485188.png](https://global.discourse-cdn.com/dynatrace/original/2X/d/d55873cb01834b967284dbd2112e48a45d8fa32b.png)

For [**event Integration**](https://docs.dynatrace.com/managed/shortlink/servicenow#event-integration)

So, all events will be correlated to the impacted entities, you will be notified in case of any impact or issues.

**Or**

You can configure [CMDB integration](https://docs.dynatrace.com/managed/shortlink/servicenow#cmdb-integration) between Dynatrace and Service Now it will figure out a comprehensive monitoring and integration Landscape.

Kind Regards,

Peter.
