# How to export user session data?

**URL:** <https://community.dynatrace.com/t/how-to-export-user-session-data/38001>\
**Category:** Dynatrace API\
**Tags:** user-sessions, dynatrace-api\
**Created:** [January 16, 2023, 12:49am UTC](https://community.dynatrace.com/t/how-to-export-user-session-data/38001 "2023-01-16T00:49:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Koteswar](https://avatars.discourse-cdn.com/v4/letter/k/8c91f0/32.png) [@Koteswar](https://community.dynatrace.com/u/Koteswar)\
**Post date:** [January 16, 2023, 12:49am UTC](https://community.dynatrace.com/t/how-to-export-user-session-data/38001/1 "2023-01-16T00:49:50Z")

</div>

Hi All,

Greetings of the day.

I would like to know how to export user session data from Dynatrace. Is there any Dynatrace API to retrieve user session data like as problem notification. I have verified Dynatrace document and did not find relevant information. Please advise?

---

<div class="post-metadata">

**Author:** ![Fin\_Ubels](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/fin_ubels/32/18008_2.png) [@Fin\_Ubels](https://community.dynatrace.com/u/Fin_Ubels)\
**Post date:** [January 16, 2023, 2:00am UTC](https://community.dynatrace.com/t/how-to-export-user-session-data/38001/2 "2023-01-16T02:00:04Z")

</div>

Hey Koteswar,  
There are 2 main ways of exporting the data. The first is using this API&nbsp;[User sessions API | Dynatrace Docs](https://www.dynatrace.com/support/help/dynatrace-api/environment-api/rum/user-sessions)&nbsp;which allows you to run USQL queries through an API.  
The second method is&nbsp;[Configure user session export | Dynatrace Docs](https://www.dynatrace.com/support/help/how-to-use-dynatrace/real-user-monitoring/setup-and-configuration/web-applications/additional-configuration/export-session-data)&nbsp;which allows for sessions to be streamed to another platform or storage location for long term storage or more complex analysis.&nbsp;  
As far as I know there is no way to trigger exporting that information when a problem or some other event occurs within Dynatrace. You could consider using external tools to run queries when custom problems are created.  
Hope this helps

---

<div class="post-metadata">

**Author:** ![Koteswar](https://avatars.discourse-cdn.com/v4/letter/k/8c91f0/32.png) [@Koteswar](https://community.dynatrace.com/u/Koteswar)\
**Post date:** [January 16, 2023, 9:12am UTC](https://community.dynatrace.com/t/how-to-export-user-session-data/38001/3 "2023-01-16T09:12:39Z")

</div>

[@Fin\_Ubels](https://community.dynatrace.com/user/47376)&nbsp;thank you for sharing information.

---

<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:** [January 30, 2023, 12:21pm UTC](https://community.dynatrace.com/t/how-to-export-user-session-data/38001/4 "2023-01-30T12:21:52Z")

</div>

Hi&nbsp;[@Fin\_Ubels](https://community.dynatrace.com/user/47376)

I’ve created the token to extract the session data for a specific application.

can you please guide me where to specify it the application name to get it’s user session data.

 ![User Session.png](https://global.discourse-cdn.com/dynatrace/original/2X/c/c9d47013c9543a95a9bbaa0c70fadc15b7320928.png)
