# Filtering data based on application, host, service, process and Process Group

**URL:** <https://community.dynatrace.com/t/filtering-data-based-on-application-host-service-process-and-process-group/35608>\
**Category:** Dynatrace API\
**Tags:** filter, hosts-classic\
**Created:** [June 27, 2022, 10:19am UTC](https://community.dynatrace.com/t/filtering-data-based-on-application-host-service-process-and-process-group/35608 "2022-06-27T10:19:33Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![manjunathcr22](https://avatars.discourse-cdn.com/v4/letter/m/ecae2f/32.png) [@manjunathcr22](https://community.dynatrace.com/u/manjunathcr22)\
**Post date:** [June 27, 2022, 10:19am UTC](https://community.dynatrace.com/t/filtering-data-based-on-application-host-service-process-and-process-group/35608/1 "2022-06-27T10:19:33Z")

</div>

We want to filter results from v2/metrics/query using process, host, process, processgroup or services etc using params present in dimensionMap.

We need filtering based on process, process group, services, hosts and applications.

So for host filtering this entitySelector worked

?metricSelector=builtin:host.cpu.gcpu.usage:names&entitySelector=type(“HOST”),entityName.equals(“ABCD”)

Where ABCD is dt.entity.host.name in dimensionMap.

So how can i filter all other types of elements monitored by dynatrace?

In below examples I want data of Real users only

“dimensionMap”: {  
“User type”: “Real users”,  
“dt.entity.application\_method”: “APPLICATION\_METHOD-B2F93E1A7FA2007E”  
},

To filter only above data I queried using api : /api/v2/metrics/query?metricSelector=builtin:apps.web.action.apdex:names&entitySelector=type(“APPLICATION”),entityName.equals(“Real users”)&from=1652853660000&to=1652940060000&resolution=60m

But getting no data.

So what and all allowed values for entitySelector=type()

---

_[View the full topic](https://community.dynatrace.com/t/filtering-data-based-on-application-host-service-process-and-process-group/35608)._
