# Retrieve last 7 days brand new on-boarding hosts

**URL:** <https://community.dynatrace.com/t/retrieve-last-7-days-brand-new-on-boarding-hosts/37441>\
**Category:** Dynatrace API\
**Tags:** dynatrace-api\
**Created:** [November 23, 2022, 10:07pm UTC](https://community.dynatrace.com/t/retrieve-last-7-days-brand-new-on-boarding-hosts/37441 "2022-11-23T22:07:35Z")\
**Posts on this page:** 4\
**Page:** 1

<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:** [November 23, 2022, 10:07pm UTC](https://community.dynatrace.com/t/retrieve-last-7-days-brand-new-on-boarding-hosts/37441/1 "2022-11-23T22:07:35Z")

</div>

Is there a way to retrieve last 7 days brand new onboarding hosts? We used the below test cases but return incorrect results:

**Test case1:**

“api/v1/entity/infrastructure/hosts?from=now-14d&to=now-7d&includeDetails=false”

vs “api/v1/entity/infrastructure/hosts?from=now-7d&to=now&includeDetails=false”

compare “displayName” (=hostname) return no diff.

**Test case2:**

“api/v1/entity/infrastructure/hosts?from=now-90d&to=now-14d&includeDetails=false”

vs “api/v1/entity/infrastructure/hosts?from=now-14d&to=now-7d&includeDetails=false”: compare “displayName” (=hostname) , return very small qty of hosts and missing many.

The **goal** is to retrieve last 7 days brand new on-boarding hosts.

- Please note firstSeenTimestamp can not be the reliable indicator (reason mentioned in [https://community.dynatrace.com/t5/Dynatrace-API/Which-API-and-field-Indicator-of-brand-new-on-boarding-hosts/m-p/198335#M2138](https://community.dynatrace.com/post/198335#M2138) ) ; Host restart will make new record of “entityId” + “firstSeenTimestamp”.

That is why we intend to use alternative solution: compare last 7-14days hosts list with last 7 days hosts list to see any brand new.

---

<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:** [January 10, 2023, 3:49pm UTC](https://community.dynatrace.com/t/retrieve-last-7-days-brand-new-on-boarding-hosts/37441/2 "2023-01-10T15:49:35Z")

</div>

So you could use the deployment status page to see the hosts that have recently onboarded hosts in the past 3 days. You could also use the BizOps Configurator to see the new Host unit consumption per Host Group or even Management Zone, but it wont give you the host ID.

 ![ChadTurner_0-1673365631846.png](https://global.discourse-cdn.com/dynatrace/original/2X/d/d0c0085226ec2738f059f30d2b51d28096b98fa3.png)

 ![ChadTurner_2-1673365697335.png](https://global.discourse-cdn.com/dynatrace/original/3X/c/0/c09b3836ef203806c8ef99fe0531caa46042b69e.png)

As you mentioned you could always do a export of the hosts and then use a tool such as beyond compare to see what new/removed.

---

<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:** [January 10, 2023, 4:32pm UTC](https://community.dynatrace.com/t/retrieve-last-7-days-brand-new-on-boarding-hosts/37441/3 "2023-01-10T16:32:52Z")

</div>

[@ChadTurner](https://community.dynatrace.com/user/14877)

Thank you!

#1. Q:&nbsp;BizOps Configurator&nbsp; \> Where I can get this? Is it free tool?

#2. “As you mentioned you could always do a export of the hosts and then use a tool such as beyond compare to see what new/removed.”: I see, so we have to make routine export via API, and compare, which is out-of-dynatrace-solution.

Rgds, Avril

---

<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:** [January 10, 2023, 4:36pm UTC](https://community.dynatrace.com/t/retrieve-last-7-days-brand-new-on-boarding-hosts/37441/4 "2023-01-10T16:36:40Z")

</div>

Yeah it depends on our frequency. We actually used Beyond Compare to target new servers for patching (once a month) so we could ensure they were all part of a restart group. This allowed us to find the 5-6 hosts that were new out of the 20K hosts the org had.

Biz ops configurator can be found here:&nbsp;[BizOpsConfigurator](https://dynatrace.github.io/BizOpsConfigurator/#prerequisites)&nbsp;It is free, and you’ll need a token for your environment, the instructions are well layed out.

You could also ask your Dynatrace Account rep to provide a report of new hosts and and such on a weekly basis. We use to get a really nice report of usage on a weekly basis
