# Span DQL to filter on "Referer"

**URL:** <https://community.dynatrace.com/t/span-dql-to-filter-on-referer/45490>\
**Category:** DQL\
**Tags:** dql\
**Created:** [May 8, 2024, 1:27pm UTC](https://community.dynatrace.com/t/span-dql-to-filter-on-referer/45490 "2024-05-08T13:27:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ronmacdonald](https://avatars.discourse-cdn.com/v4/letter/r/a88e57/32.png) [@ronmacdonald](https://community.dynatrace.com/u/ronmacdonald)\
**Post date:** [May 8, 2024, 1:27pm UTC](https://community.dynatrace.com/t/span-dql-to-filter-on-referer/45490/1 "2024-05-08T13:27:40Z")

</div>

I’m trying to write a dql that will summarize by the “referer” header value.&nbsp; I see an array, “supportability.non\_persisted\_attribute\_keys”&nbsp; that contains http.request.header.referer but it doesn’t provide the value for the keys.&nbsp; Is this somehow already available and I’m just not seeing it or what is the easiest way to expose the value?

---

<div class="post-metadata">

**Author:** ![ronmacdonald](https://avatars.discourse-cdn.com/v4/letter/r/a88e57/32.png) [@ronmacdonald](https://community.dynatrace.com/u/ronmacdonald)\
**Post date:** [May 8, 2024, 1:50pm UTC](https://community.dynatrace.com/t/span-dql-to-filter-on-referer/45490/2 "2024-05-08T13:50:06Z")

</div>

I tried creating a request attribute for the field but that doesn’t appear to be available in the span data either…

---

<div class="post-metadata">

**Author:** ![MichalOlszewski](https://avatars.discourse-cdn.com/v4/letter/m/cab0a1/32.png) [@MichalOlszewski](https://community.dynatrace.com/u/MichalOlszewski)\
**Post date:** [May 9, 2024, 2:12pm UTC](https://community.dynatrace.com/t/span-dql-to-filter-on-referer/45490/3 "2024-05-09T14:12:27Z")

</div>

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

If you decided to get this value using request attribute did you try standard query provided by Dynatrace to looking for request attribute in spans?

fetch spans, from: -30m, to: now(), scanLimitGBytes: 500

// filter for spans with certain request attribute: `request_attribute.\<your attribute name\>`

| filter isNotNull(`request_attribute.\<your attribute name\>`)

| limit 100
