# ProTip - Adding ElasticSearch Extension Data to a Management Zone

**URL:** <https://community.dynatrace.com/t/protip-adding-elasticsearch-extension-data-to-a-management-zone/50533>\
**Category:** Dynatrace Tips\
**Tags:** community-tips, management-zones, elasticsearch, entity-selector, extensions, tips-and-tricks\
**Created:** [March 3, 2025, 3:48pm UTC](https://community.dynatrace.com/t/protip-adding-elasticsearch-extension-data-to-a-management-zone/50533 "2025-03-03T15:48:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![GilesDay](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/gilesday/32/35068_2.png) [@GilesDay](https://community.dynatrace.com/u/GilesDay)\
**Post date:** [March 3, 2025, 3:48pm UTC](https://community.dynatrace.com/t/protip-adding-elasticsearch-extension-data-to-a-management-zone/50533/1 "2025-03-03T15:48:30Z")

</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 :&nbsp;[Solved: Add extensions to a Management Zone - Dynatrace Community](https://community.dynatrace.com/post/213384)&nbsp;and&nbsp;[@Mike\_L](https://community.dynatrace.com/user/11520)&nbsp;&nbsp;post on finding the relationships. I used this as a starting point, and got this for ElasticSearch

 ![GilesDay_2-1741016371231.png](https://global.discourse-cdn.com/dynatrace/original/3X/e/4/e4c5e95568b6c622854d9b1909cf151a38105202.png)

I started by adding a tag App:XYZ to the Elastic Search Cluster Node. This will allow me to select a particular cluster to add to the Management zone and have all the other underlying parameters added via relationships.

 ![GilesDay_1-1741016289977.png](https://global.discourse-cdn.com/dynatrace/original/2X/7/7bb014a33cefc0bd9f8202e64b72cb77689bbe03.png)

I then added the following rules to the Management Zone

```markup
type("elasticsearch:cluster"),tag("App:XYZ")

```

```markup
type("elasticsearch:index"),fromRelationship.runsOn(type("elasticsearch:cluster"),tag("App:XYZ"))

```

```markup
type("elasticsearch:disk"),fromRelationship.isChildOf(type("elasticsearch:node"),fromRelationship.isChildOf(type("elasticsearch:cluster"),tag("App:XYZ")))

```

```markup
type("elasticsearch:node"),fromRelationship.isChildOf(type("elasticsearch:cluster"),tag("App:XYZ"))

```

```markup
type("elasticsearch:thread_pool"),fromRelationship.runsOn(type("elasticsearch:node"),fromRelationship.isChildOf(type("elasticsearch:cluster"),tag("App:XYZ")))

```

The only one I didn’t add from the first screenshot was elasticsearch:node is same as host, because the node was already added in a different rule. I’m not 100% sure this is correct, however when navigating the extension data in and out of the management zone, I could not see any difference. However if anyone has any thoughts on that, or if I missed anything, please add.

Note this was done on Dynatrace Managed, 1.306.93

---

<div class="post-metadata">

**Author:** ![Kenny\_Gillette](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/kenny_gillette/32/20170_2.png) [@Kenny\_Gillette](https://community.dynatrace.com/u/Kenny_Gillette)\
**Post date:** [March 3, 2025, 8:57pm UTC](https://community.dynatrace.com/t/protip-adding-elasticsearch-extension-data-to-a-management-zone/50533/2 "2025-03-03T20:57:39Z")

</div>

Thanks!&nbsp; Helpful as I used to tie AWS accounts to only needed metrics based off tags
