# What determines the agent version the application  or host?

**URL:** <https://community.dynatrace.com/t/what-determines-the-agent-version-the-application-or-host/32416>\
**Category:** Real User Monitoring\
**Tags:** real-user-monitoring-classic, application-rules, application-monitoring\
**Created:** [August 16, 2021, 2:20pm UTC](https://community.dynatrace.com/t/what-determines-the-agent-version-the-application-or-host/32416 "2021-08-16T14:20:40Z")\
**Posts on this page:** 3\
**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:** [August 16, 2021, 2:20pm UTC](https://community.dynatrace.com/t/what-determines-the-agent-version-the-application-or-host/32416/1 "2021-08-16T14:20:40Z")

</div>

Hello,

What determines the agent version the application&nbsp; or host?

When an application is served by two hosts, and only one host gets a new agent version. The application will be injected with two different agent versions?

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:** [August 16, 2021, 4:17pm UTC](https://community.dynatrace.com/t/what-determines-the-agent-version-the-application-or-host/32416/2 "2021-08-16T16:17:07Z")

</div>

The Oneagent is set at the host level. So if Server 1 servers up Application 1 - then Application 1 will get the injected version that is provided by that Host 1 Oneagent.

If you have two servers Host 1,2 that Serve Up Application 1 then it is best practice to have both hosts at the same oneagent version. This is why you are able to update hosts at Host Grouping Levels as well.

Also keep in mind, that Oneagent Versions don’t always contain injection changes for applications, so Having a Host at version 1 and another at version 3, might not change the injection for the application.

---

<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:** [August 16, 2021, 4:18pm UTC](https://community.dynatrace.com/t/what-determines-the-agent-version-the-application-or-host/32416/3 "2021-08-16T16:18:26Z")

</div>

Agentless RUM is the only thing that cuts out the host level as you will need to add it directly into the application.
