# Can we filter distributed traces for Request Header specially the referer part of it?

**URL:** <https://community.dynatrace.com/t/can-we-filter-distributed-traces-for-request-header-specially-the-referer-part-of-it/35876>\
**Category:** Open Q&A\
**Tags:** headers, request-attributes\
**Created:** [July 15, 2022, 8:18pm UTC](https://community.dynatrace.com/t/can-we-filter-distributed-traces-for-request-header-specially-the-referer-part-of-it/35876 "2022-07-15T20:18:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![GauriS](https://avatars.discourse-cdn.com/v4/letter/g/b487fb/32.png) [@GauriS](https://community.dynatrace.com/u/GauriS)\
**Post date:** [July 15, 2022, 8:18pm UTC](https://community.dynatrace.com/t/can-we-filter-distributed-traces-for-request-header-specially-the-referer-part-of-it/35876/1 "2022-07-15T20:18:07Z")

</div>

Can we filter distributed traces for request headers?

---

<div class="post-metadata">

**Author:** ![gopher](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/gopher/32/5728_2.png) [@gopher](https://community.dynatrace.com/u/gopher)\
**Post date:** [July 18, 2022, 1:19am UTC](https://community.dynatrace.com/t/can-we-filter-distributed-traces-for-request-header-specially-the-referer-part-of-it/35876/2 "2022-07-18T01:19:21Z")

</div>

Hi Gauri,

Yes you can.&nbsp; First you need to create a ‘request attribute’ , you can do this as ‘global’ or filtered to a specific application or component.&nbsp; &nbsp;More info here:&nbsp;[Request attributes | Dynatrace Docs](https://www.dynatrace.com/support/help/how-to-use-dynatrace/services/request-attributes)

\* You can use this approach to make any field searchable within distributed trace.

As a request attribute, you can call out the ‘Referer’ which will be captured and then made searchable.

global capture example below.

 ![Peter_Ralston_0-1658106577758.png](https://global.discourse-cdn.com/dynatrace/original/3X/d/e/de2225c7716741301633903ea83f20eda9a76dc1.png)

Once in distributed traces, you can then search / filter using the following

- All matching instances

 ![Peter_Ralston_1-1658106786555.png](https://global.discourse-cdn.com/dynatrace/original/3X/d/1/d1ef73a67578b1bfa55231009c5a4fd56fbc8062.png)

- specific instance

 ![Peter_Ralston_2-1658107018488.png](https://global.discourse-cdn.com/dynatrace/original/3X/1/f/1ff52bc6bbc849677382a7d095d58dea535d18c6.png)

Enjoy
