# \#entity-selector

**URL:** https://community.dynatrace.com/tag/entity-selector/363.md

[Latest](https://community.dynatrace.com/latest.md) · [Categories](https://community.dynatrace.com/categories.md) · [Tags](https://community.dynatrace.com/tags.md)

---

## [Getting started with custom deployment events](https://community.dynatrace.com/t/getting-started-with-custom-deployment-events/54423)

<div class="topic-metadata">

**Author:** [@eric\_h](https://community.dynatrace.com/u/eric_h)\
**Replies:** 2\
**Last updated:** [December 23, 2025, 6:21pm UTC](https://community.dynatrace.com/t/getting-started-with-custom-deployment-events/54423 "2025-12-23T18:21:46Z")

</div>

I would like to start using the Events API (v2) to post CUSTOM\_DEPLOYMENT events to Dynatrace, from our CI/CD pipelines. The ultimate goal is to add this information to Dynatrace so it’s useful to Davis and users to corr…

---

## [Process Group Name](https://community.dynatrace.com/t/process-group-name/42887)

<div class="topic-metadata">

**Author:** [@errolclements](https://community.dynatrace.com/u/errolclements)\
**Replies:** 5\
**Last updated:** [October 24, 2025, 2:16pm UTC](https://community.dynatrace.com/t/process-group-name/42887 "2025-10-24T14:16:28Z")

</div>

I am trying to put together a notebook to see network load by process, I am only seeing an option for seeing the process group and it is only giving it by ID. I would like to see the actual process group entity name on m…

---

## [Filter only active hosts, processes, services and applications using entitySelector](https://community.dynatrace.com/t/filter-only-active-hosts-processes-services-and-applications-using-entityselector/52824)

<div class="topic-metadata">

**Author:** [@HuseynNajafli](https://community.dynatrace.com/u/HuseynNajafli)\
**Replies:** 3\
**Last updated:** [August 6, 2025, 2:13pm UTC](https://community.dynatrace.com/t/filter-only-active-hosts-processes-services-and-applications-using-entityselector/52824 "2025-08-06T14:13:10Z")

</div>

Hello. I want to create a management zone for my Windows hosts which shows only active Windows hosts (there are connected Linux hosts, but I don’t want showing Linux hosts only Windows hosts), active processes, active …

---

## [How to select multiple entityName.startsWith statements?](https://community.dynatrace.com/t/how-to-select-multiple-entityname-startswith-statements/52006)

<div class="topic-metadata">

**Author:** [@larry\_roberts](https://community.dynatrace.com/u/larry_roberts)\
**Replies:** 2\
**Last updated:** [June 10, 2025, 4:46pm UTC](https://community.dynatrace.com/t/how-to-select-multiple-entityname-startswith-statements/52006 "2025-06-10T16:46:29Z")

</div>

I am trying to make some of our rules more efficient and cut down on the amount of rules needed for auto tags. Does anyone know if it is possible to add an OR statement as part of the syntax below? type(CONTAINER\_GROUP)…

---

## [Apply variable values in filter with entitySelector](https://community.dynatrace.com/t/apply-variable-values-in-filter-with-entityselector/40707)

<div class="topic-metadata">

**Author:** [@elenaperez](https://community.dynatrace.com/u/elenaperez)\
**Replies:** 10\
**Last updated:** [March 28, 2025, 1:27pm UTC](https://community.dynatrace.com/t/apply-variable-values-in-filter-with-entityselector/40707 "2025-03-28T13:27:39Z")

</div>

I have the following query on a dashboard: timeseries cpu=avg(dt.host.cpu.usage), filter:in(dt.entity.host,entitySelector(“type(host),tag(Environment:DEV)”)),by:dt.entity.host | sort arrayAvg(cpu), direction:“descendin…

---

## [Entity Type Viewer for Dynatrace Managed](https://community.dynatrace.com/t/entity-type-viewer-for-dynatrace-managed/50761)

<div class="topic-metadata">

**Author:** [@Michael\_M](https://community.dynatrace.com/u/Michael_M)\
**Replies:** 1\
**Last updated:** [March 18, 2025, 9:54am UTC](https://community.dynatrace.com/t/entity-type-viewer-for-dynatrace-managed/50761 "2025-03-18T09:54:50Z")

</div>

We all know and use the entity selector in Dynatrace but to know which entities do exist in Dynatrace and how they are connected to each other, yeah, that’s not as straightforward as I would like. The documentation, let…

---

## [ProTip - Adding ElasticSearch Extension Data to a Management Zone](https://community.dynatrace.com/t/protip-adding-elasticsearch-extension-data-to-a-management-zone/50533)

<div class="topic-metadata">

**Author:** [@GilesDay](https://community.dynatrace.com/u/GilesDay)\
**Replies:** 1\
**Last updated:** [March 3, 2025, 8:57pm UTC](https://community.dynatrace.com/t/protip-adding-elasticsearch-extension-data-to-a-management-zone/50533 "2025-03-03T20:57:39Z")

</div>

I tried searching to see if anyone else had identified the entity selectors needed to add ElasticSearch data to a Management Zone. I didn’t find anything in the first few minutes of looking but I did find this : Solved: …

---

## [The inner workings of the entity selector](https://community.dynatrace.com/t/the-inner-workings-of-the-entity-selector/50450)

<div class="topic-metadata">

**Author:** [@henk\_stobbe](https://community.dynatrace.com/u/henk_stobbe)\
**Replies:** 1\
**Last updated:** [February 25, 2025, 6:41pm UTC](https://community.dynatrace.com/t/the-inner-workings-of-the-entity-selector/50450 "2025-02-25T18:41:13Z")

</div>

Hello, When using an entity selector in an API you can use an entity id ('s): Entity type: type(“TYPE”) Dynatrace entity ID: entityId(“id”). You can specify several IDs, separated by a comma (entityId(“id-1”,“id-2”)).…

---

## [Metrics Via V2 API](https://community.dynatrace.com/t/metrics-via-v2-api/46576)

<div class="topic-metadata">

**Author:** [@subhan](https://community.dynatrace.com/u/subhan)\
**Replies:** 2\
**Last updated:** [January 6, 2025, 10:31am UTC](https://community.dynatrace.com/t/metrics-via-v2-api/46576 "2025-01-06T10:31:43Z")

</div>

Hello Everyone, I am new to Dynatrace APIs, I am trying to get all metrics for any kind of entity using the entity ID. I’m facing problem in metricSelector for metric api V2 getDataPoint request. Is there any api for th…

---

## [Entity selector to tag the type(SERVICE) for a particular OpenShift cluster](https://community.dynatrace.com/t/entity-selector-to-tag-the-type-service-for-a-particular-openshift-cluster/47689)

<div class="topic-metadata">

**Author:** [@Babar\_Qayyum](https://community.dynatrace.com/u/Babar_Qayyum)\
**Replies:** 2\
**Last updated:** [September 16, 2024, 9:03am UTC](https://community.dynatrace.com/t/entity-selector-to-tag-the-type-service-for-a-particular-openshift-cluster/47689 "2024-09-16T09:03:24Z")

</div>

Dear All, What is the procedure for assigning a tag to the SERVICE type associated with a specific OpenShift cluster? I attempted the following actions, but was unsuccessful. type(SERVICE),fromRelationships.isServiceO…

---

## [filter based on entityName](https://community.dynatrace.com/t/filter-based-on-entityname/47192)

<div class="topic-metadata">

**Author:** [@Cky007](https://community.dynatrace.com/u/Cky007)\
**Replies:** 3\
**Last updated:** [August 19, 2024, 10:01am UTC](https://community.dynatrace.com/t/filter-based-on-entityname/47192 "2024-08-19T10:01:40Z")

</div>

While I trying to filter the entities based on entityName I’m not able to fetch with https://{your-environment}/api/v2/metrics/query?entitySelector=entityname.equals(%22{entityname}%22). with this api I’m not able to fet…

---

## [Entity Selector host custom metadata](https://community.dynatrace.com/t/entity-selector-host-custom-metadata/41336)

<div class="topic-metadata">

**Author:** [@axel\_tapia](https://community.dynatrace.com/u/axel_tapia)\
**Replies:** 1\
**Last updated:** [June 18, 2024, 4:16pm UTC](https://community.dynatrace.com/t/entity-selector-host-custom-metadata/41336 "2024-06-18T16:16:02Z")

</div>

Today I spend most of my day trying to find an example for entitySelector where certain custom host metadata is present (or not present), after asking dynatrace support finally fot the right syntax for this just want to…

---

## [Filtering all hosts NOT in any host group](https://community.dynatrace.com/t/filtering-all-hosts-not-in-any-host-group/45407)

<div class="topic-metadata">

**Author:** [@Enrico\_F](https://community.dynatrace.com/u/Enrico_F)\
**Replies:** 4\
**Last updated:** [May 3, 2024, 6:42am UTC](https://community.dynatrace.com/t/filtering-all-hosts-not-in-any-host-group/45407 "2024-05-03T06:42:32Z")

</div>

I would like to identify all active hosts in my SaaS environment that are NOT members of any host group e.g. as a list of host names. What would be the easiest way to achieve this preferably via UI or an entity selector…

---

## [Automatic Tagging Rules - Entity Selector, targeting Host, Service & Process in 1 rule.](https://community.dynatrace.com/t/automatic-tagging-rules-entity-selector-targeting-host-service-process-in-1-rule/45053)

<div class="topic-metadata">

**Author:** [@Jordan\_Mac](https://community.dynatrace.com/u/Jordan_Mac)\
**Replies:** 2\
**Last updated:** [April 9, 2024, 1:30pm UTC](https://community.dynatrace.com/t/automatic-tagging-rules-entity-selector-targeting-host-service-process-in-1-rule/45053 "2024-04-09T13:30:04Z")

</div>

I want to populate tags across vertical service stack, where a service and all of its processes and the host are tagged with the same tag-value. At the moment it appears that I need to set up 4 rules: One for the Serv…

---

## [Host List without Management Zone](https://community.dynatrace.com/t/host-list-without-management-zone/43771)

<div class="topic-metadata">

**Author:** [@gbaudart](https://community.dynatrace.com/u/gbaudart)\
**Replies:** 12\
**Last updated:** [January 30, 2024, 11:01am UTC](https://community.dynatrace.com/t/host-list-without-management-zone/43771 "2024-01-30T11:01:39Z")

</div>

Hi Community, I’d like to output a list of Hosts that are not in a ManagementZone. The EntitySelector does not allow us to do this. Do you have an idea?

---

## [Add databases automatically in a management zone based on relationship](https://community.dynatrace.com/t/add-databases-automatically-in-a-management-zone-based-on-relationship/38941)

<div class="topic-metadata">

**Author:** [@agravier](https://community.dynatrace.com/u/agravier)\
**Replies:** 7\
**Last updated:** [October 11, 2023, 8:07am UTC](https://community.dynatrace.com/t/add-databases-automatically-in-a-management-zone-based-on-relationship/38941 "2023-10-11T08:07:22Z")

</div>

Hello, My host group (or my namespaces in k8S env) contains app\_env information and I use them to create 2 distinguished tags “app:xxx” and “env:xxx” on hosts, process and services side. Afterward, I create management …

---

## [Alerting - Entity selector for OS Service to MZ](https://community.dynatrace.com/t/alerting-entity-selector-for-os-service-to-mz/41231)

<div class="topic-metadata">

**Author:** [@DStockland](https://community.dynatrace.com/u/DStockland)\
**Replies:** 2\
**Last updated:** [August 16, 2023, 6:54pm UTC](https://community.dynatrace.com/t/alerting-entity-selector-for-os-service-to-mz/41231 "2023-08-16T18:54:13Z")

</div>

Hello, I have setup OS Service monitoring on a Host Group level. I’ve manually applied tags to the services as I’ve yet to determine automatic tagging. I wanted to inquire when adding a rule to the Management Zone how…

---

## [Nice to know about entity selectors (and tagging)](https://community.dynatrace.com/t/nice-to-know-about-entity-selectors-and-tagging/35595)

<div class="topic-metadata">

**Author:** [@henk\_stobbe](https://community.dynatrace.com/u/henk_stobbe)\
**Replies:** 4\
**Last updated:** [July 29, 2022, 12:56am UTC](https://community.dynatrace.com/t/nice-to-know-about-entity-selectors-and-tagging/35595 "2022-07-29T00:56:32Z")

</div>

Hello, You can use the entity selector on the Relation target entity! As an example, suppose you have multiple namespaces in Azure and you have the same name for a service bus queue in these namespaces. You need to t…
