# How can I get a list of hosts with RAM changes?

**URL:** <https://community.dynatrace.com/t/how-can-i-get-a-list-of-hosts-with-ram-changes/36787>\
**Category:** Dynatrace API\
**Tags:** hosts-classic, licensing\
**Created:** [October 5, 2022, 7:27am UTC](https://community.dynatrace.com/t/how-can-i-get-a-list-of-hosts-with-ram-changes/36787 "2022-10-05T07:27:24Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![echwallah](https://avatars.discourse-cdn.com/v4/letter/e/9e8a1a/32.png) [@echwallah](https://community.dynatrace.com/u/echwallah)\
**Post date:** [October 5, 2022, 7:27am UTC](https://community.dynatrace.com/t/how-can-i-get-a-list-of-hosts-with-ram-changes/36787/1 "2022-10-05T07:27:24Z")

</div>

If some of my monitored hosts have their RAM increased without my knowledge and license consumption is affected, how can I get a list of these hosts and their changes?

---

<div class="post-metadata">

**Author:** ![AntonioSousa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antoniosousa/32/50_2.png) [@AntonioSousa](https://community.dynatrace.com/u/AntonioSousa)\
**Post date:** [October 5, 2022, 9:48am UTC](https://community.dynatrace.com/t/how-can-i-get-a-list-of-hosts-with-ram-changes/36787/2 "2022-10-05T09:48:12Z")

</div>

I would say the easiest way would be the API way, but then I just wondered the marvels that code in Data Explorer can give us:  
(builtin:host.mem.total:splitBy(“dt.entity.host”):sort(value(auto,descending)):limit(100)-builtin:host.mem.total:splitBy(“dt.entity.host”):sort(value(auto,descending)):limit(100):timeshift(-90d)):sort(value(auto,descending))

Adjust the (-90d) to your needs, put a Table visualization, and you can even put it in a dashboard. BTW, I get some byte differences for some servers, not sure why…

---

<div class="post-metadata">

**Author:** ![AntonioSousa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antoniosousa/32/50_2.png) [@AntonioSousa](https://community.dynatrace.com/u/AntonioSousa)\
**Post date:** [October 5, 2022, 9:51am UTC](https://community.dynatrace.com/t/how-can-i-get-a-list-of-hosts-with-ram-changes/36787/3 "2022-10-05T09:51:33Z")

</div>

Forgot to mention that if you get an error relating to resolution, you should adapt to the resolution of the (-90d) data consolidation. In this case, you should use 1 hour at least.

---

<div class="post-metadata">

**Author:** ![echwallah](https://avatars.discourse-cdn.com/v4/letter/e/9e8a1a/32.png) [@echwallah](https://community.dynatrace.com/u/echwallah)\
**Post date:** [October 5, 2022, 11:21am UTC](https://community.dynatrace.com/t/how-can-i-get-a-list-of-hosts-with-ram-changes/36787/4 "2022-10-05T11:21:03Z")

</div>

Thanks&nbsp;[@AntonioSousa](https://community.dynatrace.com/user/17213)&nbsp;I haave just run this query with timeshift -30d and am seeing hosts on one column and memory on the second. Could you please explain in detail what this query is attempting to do and the interpretation of the results with a possible screen grab of an example you have done.

---

<div class="post-metadata">

**Author:** ![AntonioSousa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antoniosousa/32/50_2.png) [@AntonioSousa](https://community.dynatrace.com/u/AntonioSousa)\
**Post date:** [October 5, 2022, 11:43am UTC](https://community.dynatrace.com/t/how-can-i-get-a-list-of-hosts-with-ram-changes/36787/5 "2022-10-05T11:43:29Z")

</div>

The second column is the difference in memory between now and 30 days ago. A positive value indicates that the server RAM has risen, and a negative value that the server RAM has been reduced, by the amount given.

Please notice that small values, in bytes, seem to arise from probably rounding errors…

---

<div class="post-metadata">

**Author:** ![echwallah](https://avatars.discourse-cdn.com/v4/letter/e/9e8a1a/32.png) [@echwallah](https://community.dynatrace.com/u/echwallah)\
**Post date:** [October 5, 2022, 11:54am UTC](https://community.dynatrace.com/t/how-can-i-get-a-list-of-hosts-with-ram-changes/36787/6 "2022-10-05T11:54:20Z")

</div>

This is of great help. Thanks a million&nbsp;[@AntonioSousa](https://community.dynatrace.com/user/17213)&nbsp;you are a Rock Star

---

<div class="post-metadata">

**Author:** ![AntonioSousa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antoniosousa/32/50_2.png) [@AntonioSousa](https://community.dynatrace.com/u/AntonioSousa)\
**Post date:** [October 5, 2022, 12:05pm UTC](https://community.dynatrace.com/t/how-can-i-get-a-list-of-hosts-with-ram-changes/36787/7 "2022-10-05T12:05:11Z")

</div>

[@echwallah](https://community.dynatrace.com/user/9193), BTW, If you do it as a graph, you can see when changes happened…

---

<div class="post-metadata">

**Author:** ![mizso74](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mizso74/32/41729_2.png) [@mizso74](https://community.dynatrace.com/u/mizso74)\
**Post date:** [October 5, 2022, 12:09pm UTC](https://community.dynatrace.com/t/how-can-i-get-a-list-of-hosts-with-ram-changes/36787/8 "2022-10-05T12:09:53Z")

</div>

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

It a perfect solution (with my favourite data explorer transformation = timeshift).

Br, Mizső

---

<div class="post-metadata">

**Author:** ![echwallah](https://avatars.discourse-cdn.com/v4/letter/e/9e8a1a/32.png) [@echwallah](https://community.dynatrace.com/u/echwallah)\
**Post date:** [October 5, 2022, 12:15pm UTC](https://community.dynatrace.com/t/how-can-i-get-a-list-of-hosts-with-ram-changes/36787/9 "2022-10-05T12:15:23Z")

</div>

I am with you right there.Just realized how Quite powerful Data Explorer code builder is. The limit is just one’s imagination
