# Add a Cookie as an attribute to a webrequest

**URL:** <https://community.dynatrace.com/t/add-a-cookie-as-an-attribute-to-a-webrequest/34168>\
**Category:** Open Q&A\
**Tags:** request-attributes\
**Created:** [February 16, 2022, 4:26pm UTC](https://community.dynatrace.com/t/add-a-cookie-as-an-attribute-to-a-webrequest/34168 "2022-02-16T16:26:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![henk\_stobbe](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/henk_stobbe/32/30434_2.png) [@henk\_stobbe](https://community.dynatrace.com/u/henk_stobbe)\
**Post date:** [February 16, 2022, 4:26pm UTC](https://community.dynatrace.com/t/add-a-cookie-as-an-attribute-to-a-webrequest/34168/1 "2022-02-16T16:26:00Z")

</div>

Hello,

Anybody know if and how you can add a cookie value as a request attribute?

KR Henk

---

<div class="post-metadata">

**Author:** ![mgome](https://avatars.discourse-cdn.com/v4/letter/m/958977/32.png) [@mgome](https://community.dynatrace.com/u/mgome)\
**Post date:** [February 16, 2022, 8:03pm UTC](https://community.dynatrace.com/t/add-a-cookie-as-an-attribute-to-a-webrequest/34168/2 "2022-02-16T20:03:24Z")

</div>

To extract a specific cookie, you specify source as “HTTP request header”. &nbsp;Set the “Parameter name” as Cookie. &nbsp;Then open the open “Further restrict or process captured parameters (optional)” section and in item &nbsp;5, do something like the following:

cookiename=([^;]\*+)
