# Exclude Specific Browsers From Query Results

**URL:** <https://community.dynatrace.com/t/exclude-specific-browsers-from-query-results/51458>\
**Category:** Real User Monitoring\
**Tags:** real-user-monitoring-classic, data-explorer\
**Created:** [May 1, 2025, 7:54pm UTC](https://community.dynatrace.com/t/exclude-specific-browsers-from-query-results/51458 "2025-05-01T19:54:18Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![cwinkler109](https://avatars.discourse-cdn.com/v4/letter/c/ac91a4/32.png) [@cwinkler109](https://community.dynatrace.com/u/cwinkler109)\
**Post date:** [May 1, 2025, 7:54pm UTC](https://community.dynatrace.com/t/exclude-specific-browsers-from-query-results/51458/1 "2025-05-01T19:54:18Z")

</div>

We use the following query in Data Explorer to monitor LCP:

builtin:apps.web.action.largestContentfulPaint.load.userType.geo:filter(and(or(in(“dt.entity.application\_method”,entitySelector(“type(application\_method),entityName.equals(~“loading of pdp~”)”))))):splitBy(“dt.entity.application\_method”):percentile(95.0):sort(value(percentile(95.0),descending)):limit(20)

Is it possible to modify that query to exclude LCP data from the “FacebookBot” browser?

---

<div class="post-metadata">

**Author:** ![AntonPineiro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonpineiro/32/49_2.png) [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Post date:** [May 2, 2025, 6:53am UTC](https://community.dynatrace.com/t/exclude-specific-browsers-from-query-results/51458/2 "2025-05-02T06:53:51Z")

</div>

Hi,

I would say no, as you can see, browser is not a metric dimension:

 ![AntonPineiro_0-1746168813998.png](https://global.discourse-cdn.com/dynatrace/original/3X/3/e/3eebf6d53ce0c5780e5f45ab7b0ade7107b63b3d.png)

Best regards

---

<div class="post-metadata">

**Author:** ![cwinkler109](https://avatars.discourse-cdn.com/v4/letter/c/ac91a4/32.png) [@cwinkler109](https://community.dynatrace.com/u/cwinkler109)\
**Post date:** [May 2, 2025, 4:46pm UTC](https://community.dynatrace.com/t/exclude-specific-browsers-from-query-results/51458/3 "2025-05-02T16:46:29Z")

</div>

Yes, for me Browsers is a dimension:

 ![cwinkler109_0-1746204379498.png](https://global.discourse-cdn.com/dynatrace/original/2X/5/5c62ed3fdb3887dc91b8484536e51a2de40602fb.png)

---

<div class="post-metadata">

**Author:** ![AntonPineiro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonpineiro/32/49_2.png) [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Post date:** [May 5, 2025, 9:13am UTC](https://community.dynatrace.com/t/exclude-specific-browsers-from-query-results/51458/4 "2025-05-05T09:13:58Z")

</div>

Hi,

Yes, I was checking another metric. Which options appears to you in filter field?

 ![AntonPineiro_0-1746436423188.png](https://global.discourse-cdn.com/dynatrace/original/2X/4/4e28157d65560f3d4b5f0771a26c6711b664dfa1.png)

Is not there?

Best regards

---

<div class="post-metadata">

**Author:** ![cwinkler109](https://avatars.discourse-cdn.com/v4/letter/c/ac91a4/32.png) [@cwinkler109](https://community.dynatrace.com/u/cwinkler109)\
**Post date:** [May 5, 2025, 12:58pm UTC](https://community.dynatrace.com/t/exclude-specific-browsers-from-query-results/51458/5 "2025-05-05T12:58:40Z")

</div>

Yes, I can filter by browser. Many different types of browsers are available for me to filter the results by.

My question is how can I exclude one of those browsers from the results. For example, how would I write my query to retieve and trend LCP metrics for everything EXCEPT the “facebookbot” browser.

---

<div class="post-metadata">

**Author:** ![mark\_bley](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mark_bley/32/20954_2.png) [@mark\_bley](https://community.dynatrace.com/u/mark_bley)\
**Post date:** [May 5, 2025, 1:16pm UTC](https://community.dynatrace.com/t/exclude-specific-browsers-from-query-results/51458/6 "2025-05-05T13:16:45Z")

</div>

You will need to adapt the query and negate the browsers you are not interested in, here an example:

```markup
builtin:apps.web.action.largestContentfulPaint.load.browser
:filter(
    and(not(in("dt.entity.browser",entitySelector("type(browser),entityName.in(~"Chrome 100~",~"Chrome 101~",~"Chrome~")")))
)
)
:splitBy("dt.entity.browser"):sort(value(auto,descending)):limit(20)

```

---

<div class="post-metadata">

**Author:** ![AntonPineiro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonpineiro/32/49_2.png) [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Post date:** [May 5, 2025, 2:42pm UTC](https://community.dynatrace.com/t/exclude-specific-browsers-from-query-results/51458/7 "2025-05-05T14:42:06Z")

</div>

Hi,

I see your point.&nbsp;[@mark\_bley](https://community.dynatrace.com/user/13072)&nbsp;has already pointing you in the right direction. You need to use “not” to exclude it.

Best regards

---

<div class="post-metadata">

**Author:** ![cwinkler109](https://avatars.discourse-cdn.com/v4/letter/c/ac91a4/32.png) [@cwinkler109](https://community.dynatrace.com/u/cwinkler109)\
**Post date:** [May 5, 2025, 3:50pm UTC](https://community.dynatrace.com/t/exclude-specific-browsers-from-query-results/51458/8 "2025-05-05T15:50:33Z")

</div>

Perfect. Thank you!
