# Apply request attribute as filter to multidimensional analysis tools

**URL:** <https://community.dynatrace.com/t/apply-request-attribute-as-filter-to-multidimensional-analysis-tools/50688>\
**Category:** Open Q&A\
**Tags:** request-attributes\
**Created:** [March 12, 2025, 5:03pm UTC](https://community.dynatrace.com/t/apply-request-attribute-as-filter-to-multidimensional-analysis-tools/50688 "2025-03-12T17:03:04Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![CarlosTF](https://avatars.discourse-cdn.com/v4/letter/c/dfb087/32.png) [@CarlosTF](https://community.dynatrace.com/u/CarlosTF)\
**Post date:** [March 12, 2025, 5:03pm UTC](https://community.dynatrace.com/t/apply-request-attribute-as-filter-to-multidimensional-analysis-tools/50688/1 "2025-03-12T17:03:04Z")

</div>

Hello everybody.

I’ve been using the ‘Custom multidimensional analysis’ to get the ‘Request Count’, filtering&nbsp; by Service types and by custom ‘service tags’ and&nbsp; ‘process group tags’, and spltting by dimension&nbsp;{Request:Name} to successfully get a list of top web request.

Now , I would like to narrow my querry a bit more by using a request attribute (yet to be done) as value to narrow the filter.

The results I’ve got so far look like these:

/bi/eu/checkout  
/health/probe.html  
/ma/ca/ginbi/1/authentication/loginInfo  
/bc/ca/ginbi/1/authentication/loginInfo  
preferences  
/lu/ga/checkout

I would like to create a request attribute called ‘region’ that would use the following regex:  
^/([a-z]{2})/  
Which means that in case the request looks like this:  
/\*\*/co/whatever&nbsp; &nbsp; → It will get the value of the two characters between the 2nd and 3rd ‘/’ character.

By doing this. When for example filtering by: Request attribute: region = “ca”&nbsp; &nbsp; &nbsp;--\> it should only return:  
/ma/ca/ginbi/1/authentication/loginInfo  
/bc/ca/ginbi/1/authentication/loginInfo

I’ve tried unsuccesfully different approaches by using these datasources:  
Capture Web request URL path globally  
Capture Web service method name globally  
Capture Web request URL path globally  
Capture Web request URL globally

But I only see the request attribute created and attached to traces but not to web request.

It is possible to get this done?

Any help about whjat can I be doing wrong?

Thank you in advance.

---

<div class="post-metadata">

**Author:** ![Mohamed\_Hamdy](https://avatars.discourse-cdn.com/v4/letter/m/7ab992/32.png) [@Mohamed\_Hamdy](https://community.dynatrace.com/u/Mohamed_Hamdy)\
**Post date:** [April 21, 2025, 5:18am UTC](https://community.dynatrace.com/t/apply-request-attribute-as-filter-to-multidimensional-analysis-tools/50688/2 "2025-04-21T05:18:57Z")

</div>

Hi&nbsp;[@CarlosTF](https://community.dynatrace.com/user/87040)&nbsp;,

I just want to confirm if I understood correctly, based on your message, the request attribute has been created and is being captured successfully, and you can see it in the traces. However, you’re looking to include this request attribute in the request name, correct?

If that’s the case, you can achieve this by creating a request naming rule that utilizes the request attribute.

Let me know if that helps or if I misunderstood anything.

---

<div class="post-metadata">

**Author:** ![Peter\_Youssef](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/peter_youssef/32/14668_2.png) [@Peter\_Youssef](https://community.dynatrace.com/u/Peter_Youssef)\
**Post date:** [April 21, 2025, 6:58am UTC](https://community.dynatrace.com/t/apply-request-attribute-as-filter-to-multidimensional-analysis-tools/50688/3 "2025-04-21T06:58:53Z")

</div>

Hello&nbsp;[@CarlosTF](https://community.dynatrace.com/user/87040)

Kindly review the attached Dynatrace resources:

- [Request attributes in Services — Dynatrace Docs](https://docs.dynatrace.com/docs/observe/applications-and-microservices/services/request-attributes)
- [Capture request attributes based on web request data — Dynatrace Docs](https://docs.dynatrace.com/docs/observe/applications-and-microservices/services/request-attributes/capture-request-attributes-based-on-web-request-data)
- [Filter monitoring data via request attributes — Dynatrace Docs](https://docs.dynatrace.com/docs/observe/applications-and-microservices/services/request-attributes/filter-monitoring-data-via-request-attributes)

BR,

Peter

---

<div class="post-metadata">

**Author:** ![Peter\_Youssef](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/peter_youssef/32/14668_2.png) [@Peter\_Youssef](https://community.dynatrace.com/u/Peter_Youssef)\
**Post date:** [April 21, 2025, 7:00am UTC](https://community.dynatrace.com/t/apply-request-attribute-as-filter-to-multidimensional-analysis-tools/50688/4 "2025-04-21T07:00:29Z")

</div>

Hi&nbsp;[@CarlosTF](https://community.dynatrace.com/user/87040)

Kindly check the configured Oneagent headers features, make sure the required headers are activated and enabled properly, Thanks.

---

<div class="post-metadata">

**Author:** ![Peter\_Youssef](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/peter_youssef/32/14668_2.png) [@Peter\_Youssef](https://community.dynatrace.com/u/Peter_Youssef)\
**Post date:** [April 21, 2025, 7:02am UTC](https://community.dynatrace.com/t/apply-request-attribute-as-filter-to-multidimensional-analysis-tools/50688/5 "2025-04-21T07:02:26Z")

</div>

Hi&nbsp;[@CarlosTF](https://community.dynatrace.com/user/87040)

if possible kindly share a configuration sample for further analysis, Thanks.

---

<div class="post-metadata">

**Author:** ![Peter\_Youssef](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/peter_youssef/32/14668_2.png) [@Peter\_Youssef](https://community.dynatrace.com/u/Peter_Youssef)\
**Post date:** [April 21, 2025, 7:11am UTC](https://community.dynatrace.com/t/apply-request-attribute-as-filter-to-multidimensional-analysis-tools/50688/6 "2025-04-21T07:11:35Z")

</div>

Hello&nbsp;[@CarlosTF](https://community.dynatrace.com/user/87040)&nbsp;  
PFA screenshot for validation

 ![2025-04-21_11h09_17.png](https://global.discourse-cdn.com/dynatrace/original/2X/e/ebfe99762ac614c9ce0d0f983e92be9346143b6e.png)

BR,

Peter

---

<div class="post-metadata">

**Author:** ![Peter\_Youssef](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/peter_youssef/32/14668_2.png) [@Peter\_Youssef](https://community.dynatrace.com/u/Peter_Youssef)\
**Post date:** [April 21, 2025, 7:18am UTC](https://community.dynatrace.com/t/apply-request-attribute-as-filter-to-multidimensional-analysis-tools/50688/7 "2025-04-21T07:18:56Z")

</div>

Hi&nbsp;[@CarlosTF](https://community.dynatrace.com/user/87040)

in addition to the available resource, kindly make sure that Dynatrace headers aren’t blocked through Firewall or Network devices as per&nbsp;[Infrastructure pass-through requirements for RUM Classic — Dynatrace Docs](https://docs.dynatrace.com/docs/observe/digital-experience/web-applications/initial-setup/firewall-constraints-for-rum#headers)

- on the other side, validate the CMC related configurations

BR,

Peter

---

<div class="post-metadata">

**Author:** ![Peter\_Youssef](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/peter_youssef/32/14668_2.png) [@Peter\_Youssef](https://community.dynatrace.com/u/Peter_Youssef)\
**Post date:** [April 21, 2025, 7:25am UTC](https://community.dynatrace.com/t/apply-request-attribute-as-filter-to-multidimensional-analysis-tools/50688/8 "2025-04-21T07:25:18Z")

</div>

Hi&nbsp;[@CarlosTF](https://community.dynatrace.com/user/87040)

PFA Dynatrace ref as it contains related information to the current scenario:

- [Adaptive traffic management for Dynatrace Managed — Dynatrace Managed Docs](https://docs.dynatrace.com/managed/ingest-from/dynatrace-oneagent/adaptive-traffic-management/adaptive-traffic-management-managed)

 ![2025-04-21_11h23_07.png](https://global.discourse-cdn.com/dynatrace/original/3X/b/d/bd6114988e696acb0595be45550134dd06884709.png)

Kindly keep us posted.  
Hoping it helps,  
BR

---

<div class="post-metadata">

**Author:** ![CarlosTF](https://avatars.discourse-cdn.com/v4/letter/c/dfb087/32.png) [@CarlosTF](https://community.dynatrace.com/u/CarlosTF)\
**Post date:** [April 21, 2025, 8:26am UTC](https://community.dynatrace.com/t/apply-request-attribute-as-filter-to-multidimensional-analysis-tools/50688/9 "2025-04-21T08:26:24Z")

</div>

Good morning and thank you Peter, Mohammed, and everyody who tried to invstigate or answer this.

I’ve finally got it working when setting it like this:  
Data type → text

All disticnt values  
To upper case  
Allow this request attribute to access unmasked personal data. (Enabled)

Add new datasource:  
Request attribute source: Web Request URL Path  
Specify where the attribute is captured and then stored: Capture from both client ans server side and store where found.

This worked.

Thank you all again 🙂

Em

---

<div class="post-metadata">

**Author:** ![Peter\_Youssef](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/peter_youssef/32/14668_2.png) [@Peter\_Youssef](https://community.dynatrace.com/u/Peter_Youssef)\
**Post date:** [April 21, 2025, 8:48am UTC](https://community.dynatrace.com/t/apply-request-attribute-as-filter-to-multidimensional-analysis-tools/50688/10 "2025-04-21T08:48:20Z")

</div>

Thanks&nbsp;[@CarlosTF](https://community.dynatrace.com/user/87040)&nbsp;for keeping us posted, Best of luck during upcoming challenges and solutions&nbsp;:dynaspin:👍

---

<div class="post-metadata">

**Author:** ![CarlosTF](https://avatars.discourse-cdn.com/v4/letter/c/dfb087/32.png) [@CarlosTF](https://community.dynatrace.com/u/CarlosTF)\
**Post date:** [April 21, 2025, 10:48am UTC](https://community.dynatrace.com/t/apply-request-attribute-as-filter-to-multidimensional-analysis-tools/50688/11 "2025-04-21T10:48:56Z")

</div>

No, thanks to you guys:

I forgot to add something

I’ve finally got it working when setting it like this:  
Data type → text

All disticnt values  
To upper case  
Allow this request attribute to access unmasked personal data. (Enabled)

Add new datasource:  
Request attribute source: Web Request URL Path  
Specify where the attribute is captured and then stored: Capture from both client ans server side and store where found.  
Also in the ‘Further restrict or process captured parameters (optional)’ section:  
Prune whitespace: Enabled  
and&nbsp;  
Extract value from captured data per regex:&nbsp; &nbsp; ^/([a-z]{2})/

This time, this is the right solution.

Thanks again
