# The difference between Host Group and TAG

**URL:** <https://community.dynatrace.com/t/the-difference-between-host-group-and-tag/21721>\
**Category:** Open Q&A\
**Tags:** tagging, hosts-classic\
**Created:** [August 28, 2019, 8:45am UTC](https://community.dynatrace.com/t/the-difference-between-host-group-and-tag/21721 "2019-08-28T08:45:16Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![service\_apms](https://avatars.discourse-cdn.com/v4/letter/s/c4cdca/32.png) [@service\_apms](https://community.dynatrace.com/u/service_apms)\
**Post date:** [August 28, 2019, 8:45am UTC](https://community.dynatrace.com/t/the-difference-between-host-group-and-tag/21721/1 "2019-08-28T08:45:16Z")

</div>

Hello,

Can anyone provide a clear explanation about the use cases of HOST GROUP and TAG because i can’t see the difference.

An example would be nice.

Thank you

---

<div class="post-metadata">

**Author:** ![skrystosik](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/skrystosik/32/21133_2.png) [@skrystosik](https://community.dynatrace.com/u/skrystosik)\
**Post date:** [August 28, 2019, 9:01am UTC](https://community.dynatrace.com/t/the-difference-between-host-group-and-tag/21721/2 "2019-08-28T09:01:57Z")

</div>

Host group is really nice because of few things. First you can configure anomaly detection for whole host group. So if you have 20 the same hosts for the same application you can always overwrite Configuration for all of them at once. Another thing is configuring alerting profiles, tags, management zones. I like to use this parameter as criteria for configuring those things.

Tags can be configured on host level during deployment as well. They can be used as filters as well so you can in general think on host groups as special kind of tags, but host group is something more because of this anomaly detection thing.

Sebastian

---

<div class="post-metadata">

**Author:** ![william\_littlej](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/william_littlej/32/20985_2.png) [@william\_littlej](https://community.dynatrace.com/u/william_littlej)\
**Post date:** [August 28, 2019, 9:10am UTC](https://community.dynatrace.com/t/the-difference-between-host-group-and-tag/21721/3 "2019-08-28T09:10:10Z")

</div>

Hello,

Host groups are defined during the agent install and are used to group a set of hosts based on their purpose e.g. frontend servers and database servers. You probably do not want to have both these host groups have the same threshold limits, so instead of changing the settings on each individual host, you can change the host group settings so that e.g. all your frontend servers have a higher threshold (based on an SLA that you may have). All of the customizations of the host settings can be grouped by Host groups, we use APPNAME\_DB and APPNAME\_WS for our database agents and out webserver agents as we need to have a very strict database anomaly settings, but are more relaxed with our web servers.

Another use case is to set up [Mangement Zones](https://www.dynatrace.com/support/help/how-to-use-dynatrace/management-zones/?_ga=2.107413447.473681600.1566897491-622164392.1536847905) (MZ) to filter the environment if you wanted to focus on one host group in particular. An example of this could be that you want to focus solely on your Database servers without having to see all of the webserver agent data in your environment. You could set a rule for a management zone to show only data that came from an agent with the host group name of APPNAME\_DB.

I hope this helps,

Billy

ps. Host groups are typically defined at agent install, but this is not required.

Here are some links which may be useful for you:

> **[Login | Dynatrace](https://sso.dynatrace.com/action/signin?goto=https%3A%2F%2Fsso.dynatrace.com%3A443%2Foauth2%2Fauthorize%2Fredirect%3FoAuth2CtxUuid%3D5e314e81-32d5-4703-a71b-82b1b3120efc&oAuth2RedirectUri=https%3A%2F%2Fcommunity.dynatrace.com%2Fauth%2Foauth2callback)**

> **[Organize your environment using host groups](https://docs.dynatrace.com/docs/observe/infrastructure-observability/hosts/configuration/organize-your-environment-using-host-groups)**
>
> Find out how Dynatrace enables you to organize your hosts, processes, and services using host groups.

> **[Host group reconfiguration is now easier than ever](https://www.dynatrace.com/news/blog/host-group-reconfiguration-is-now-easier-than-ever-eap/)**
>
> Host groups allow for the grouping of hosts into manageable sets. Learn more about the improved host groups feature.

---

<div class="post-metadata">

**Author:** ![service\_apms](https://avatars.discourse-cdn.com/v4/letter/s/c4cdca/32.png) [@service\_apms](https://community.dynatrace.com/u/service_apms)\
**Post date:** [August 28, 2019, 10:27am UTC](https://community.dynatrace.com/t/the-difference-between-host-group-and-tag/21721/4 "2019-08-28T10:27:41Z")

</div>

Thanks for the explanation ! i can understand now the use cases of Host Group

---

<div class="post-metadata">

**Author:** ![service\_apms](https://avatars.discourse-cdn.com/v4/letter/s/c4cdca/32.png) [@service\_apms](https://community.dynatrace.com/u/service_apms)\
**Post date:** [August 28, 2019, 10:27am UTC](https://community.dynatrace.com/t/the-difference-between-host-group-and-tag/21721/5 "2019-08-28T10:27:59Z")

</div>

Thanks a lot Sebastian

---

<div class="post-metadata">

**Author:** ![Radu](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radu/32/23351_2.png) [@Radu](https://community.dynatrace.com/u/Radu)\
**Post date:** [August 28, 2019, 10:50am UTC](https://community.dynatrace.com/t/the-difference-between-host-group-and-tag/21721/6 "2019-08-28T10:50:48Z")

</div>

Also, adding to Sebastian and Billy’s answers, you should also keep in mind that host groups will also affect how process groups and services are created. For example, in a scenario where I am monitoring Staging and Production in the same tenant and without using host groups, I will have Process Groups which group together Staging and Prod and also will end up creating only one set of Services that will contain the requests from both Staging and Prod together. However, if I use two host groups, one for Staging, one for Production, this will also separate my Process Groups and Services into one set for Staging and one set for Production, allowing me to have separate baselines for each. The rule is that a service and a process group will only belong to one host group, hence the separation.

---

<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:** [August 28, 2019, 2:06pm UTC](https://community.dynatrace.com/t/the-difference-between-host-group-and-tag/21721/7 "2019-08-28T14:06:42Z")

</div>

TIP: I always create a HostGroup **tag** (definfed at the Process groups level, and pushed to Host and Services levels) in addition to defining the Host Group. This is so I can use it as a filter on views where the Host Group filter is not present, or use it in Management Zones on levels where it would not normally be applicable.

To summarize the other answers and add a few more points, Host Groups:

Control how processes are grouped into Process Groups

Allow for setting Anomaly Detection thresholds for the group

Allow for setting OneAgent Update rules for the group

Allow for easy filtering on certain views (like Hosts view)

Are convenient for use with tags (if you define your naming standard well you can pull out various parts like the Envionment, Application, Function, etc .) For example: Env-App-Function is used as the standard, so we can use regex to pull based on the “-” delimiter.

Are convenient for use with Management Zones (but I would always try to use a tag here rather than the Host group, itself)

In the past, they had to be defined at install time and could not be modified without a reinstall, but since version 1.161, they can be modified using the “oneagentutil” command line.

Example for Windows: “C:\Program Files (x86)\dynaTrace\oneagent\agent\tools\lib\oneagentutil.exe”

> **[OneAgent configuration via command-line interface](https://docs.dynatrace.com/docs/ingest-from/dynatrace-oneagent/oneagent-configuration-via-command-line-interface)**
>
> Learn how to perform some OneAgent configuration tasks without the need to reinstall OneAgent.

They still should be defined at install time, of course.

HTH,

dave

---

<div class="post-metadata">

**Author:** ![service\_apms](https://avatars.discourse-cdn.com/v4/letter/s/c4cdca/32.png) [@service\_apms](https://community.dynatrace.com/u/service_apms)\
**Post date:** [August 29, 2019, 8:33am UTC](https://community.dynatrace.com/t/the-difference-between-host-group-and-tag/21721/8 "2019-08-29T08:33:54Z")

</div>

Thanks dave

---

<div class="post-metadata">

**Author:** ![service\_apms](https://avatars.discourse-cdn.com/v4/letter/s/c4cdca/32.png) [@service\_apms](https://community.dynatrace.com/u/service_apms)\
**Post date:** [August 29, 2019, 8:34am UTC](https://community.dynatrace.com/t/the-difference-between-host-group-and-tag/21721/9 "2019-08-29T08:34:13Z")

</div>

Thanks a lot for your answer
