# New host detection

**URL:** <https://community.dynatrace.com/t/new-host-detection/18819>\
**Category:** Open Q&A\
**Tags:** hosts-classic\
**Created:** [March 19, 2020, 11:53am UTC](https://community.dynatrace.com/t/new-host-detection/18819 "2020-03-19T11:53:22Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![henk\_stobbe](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/henk_stobbe/32/30434_2.png) [@henk\_stobbe](https://community.dynatrace.com/u/henk_stobbe)\
**Post date:** [March 19, 2020, 11:53am UTC](https://community.dynatrace.com/t/new-host-detection/18819/1 "2020-03-19T11:53:22Z")

</div>

Hello,

Is there an elegant way to detect and signal a new host connecting to an environment?

KR Henk

---

<div class="post-metadata">

**Author:** ![ChadTurner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/chadturner/32/161_2.png) [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Post date:** [March 19, 2020, 12:11pm UTC](https://community.dynatrace.com/t/new-host-detection/18819/2 "2020-03-19T12:11:00Z")

</div>

[@Henk S.](https://answers.dynatrace.com/users/4080/view.html) When you onboard a new host via the Dynatrace Oneagent, it should show up under “Deployment Status” \> Oneagents\> Recently Connected Hosts. From this page you can also filter out hosts via oneagent version and so on.

 ![24150-recently-connected-hosts.jpg](https://global.discourse-cdn.com/dynatrace/original/3X/e/9/e91c1bff58c20498764c935c81524f876d4ef1fb.jpeg)

 ![24189-recently-connected-hosts2.jpg](https://global.discourse-cdn.com/dynatrace/original/3X/a/2/a2b8f803a2a0b551dde102cfd2575cda7383e248.jpeg)

---

<div class="post-metadata">

**Author:** ![henk\_stobbe](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/henk_stobbe/32/30434_2.png) [@henk\_stobbe](https://community.dynatrace.com/u/henk_stobbe)\
**Post date:** [March 20, 2020, 7:01am UTC](https://community.dynatrace.com/t/new-host-detection/18819/3 "2020-03-20T07:01:51Z")

</div>

hello chad,

thx for your response, do you know if this can be automated? for example when a new host is detected Dynatrace sends me an email or something like that,

kr Henk

---

<div class="post-metadata">

**Author:** ![ChadTurner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/chadturner/32/161_2.png) [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Post date:** [March 20, 2020, 12:21pm UTC](https://community.dynatrace.com/t/new-host-detection/18819/4 "2020-03-20T12:21:20Z")

</div>

Hey [@Henk S.](https://answers.dynatrace.com/users/4080/view.html) not that I am aware of. I know that some organizations with VMWare environments are putting the oneagent into the ISO images/templates so when a new host is deployed, it automatically gets connected up to the environment. This of course also requires updates overtime just like Microsoft patches. Why roll out 10 servers that all need to get the same patches because the template is old. Typically we would update them all every 3 months.

You could put in a RFE as that might be a handy feature to have, but also might get over whelming depending on the organizations size.

If you have any type of cloud monitoring then the Oneagent Operator keeps everything updated and everything on boarded as new devices spin up/down.

---

<div class="post-metadata">

**Author:** ![dave\_mauney](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/dave_mauney/32/27784_2.png) [@dave\_mauney](https://community.dynatrace.com/u/dave_mauney)\
**Post date:** [March 20, 2020, 3:13pm UTC](https://community.dynatrace.com/t/new-host-detection/18819/5 "2020-03-20T15:13:49Z")

</div>

Only option I can think of is to use the API to list the hosts and compare to the prior list. You could run this daily and get a list of any new hosts added during the prior 24 hour that way.

---

<div class="post-metadata">

**Author:** ![avrildong](https://avatars.discourse-cdn.com/v4/letter/a/9de0a6/32.png) [@avrildong](https://community.dynatrace.com/u/avrildong)\
**Post date:** [October 17, 2022, 8:26pm UTC](https://community.dynatrace.com/t/new-host-detection/18819/6 "2022-10-17T20:26:42Z")

</div>

Hi Dave,

Can you help to address the API here?

We intend to proceed your solution “run this daily and get a list of any new hosts added during the prior 24 hour that way.” , but we are confusing which API should be and which field indicate it is new in prior 24 hours?

Besides,

- If one-agent fully restart, firstSeenTimestamp field (not sure this is the indicator) will re-count from zero?
- prior 24 hours =&nbsp;from=now-24h&to=now ? or better to use&nbsp;from=yesterday?

Thanks much in the advance!&nbsp; & Rgds, Avril
