# Is it possible to export a single User Session with User Actions as a Json File?

**URL:** <https://community.dynatrace.com/t/is-it-possible-to-export-a-single-user-session-with-user-actions-as-a-json-file/21298>\
**Category:** Real User Monitoring\
**Tags:** user-sessions\
**Created:** [July 16, 2019, 12:56pm UTC](https://community.dynatrace.com/t/is-it-possible-to-export-a-single-user-session-with-user-actions-as-a-json-file/21298 "2019-07-16T12:56:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![peter\_huber](https://avatars.discourse-cdn.com/v4/letter/p/dbc845/32.png) [@peter\_huber](https://community.dynatrace.com/u/peter_huber)\
**Post date:** [July 16, 2019, 12:56pm UTC](https://community.dynatrace.com/t/is-it-possible-to-export-a-single-user-session-with-user-actions-as-a-json-file/21298/1 "2019-07-16T12:56:14Z")

</div>

Hi all

i would like to export a distinct user session as a Json File to see whether all necessary user actions are included or not.

Is there a way to do this easily?

Cheers

Peter

---

<div class="post-metadata">

**Author:** ![david\_n](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/david_n/32/12978_2.png) [@david\_n](https://community.dynatrace.com/u/david_n)\
**Post date:** [July 16, 2019, 3:37pm UTC](https://community.dynatrace.com/t/is-it-possible-to-export-a-single-user-session-with-user-actions-as-a-json-file/21298/2 "2019-07-16T15:37:44Z")

</div>

Hello Peter,

I know that we can feed all user sessions to an HTTP endpoint as JSON but I don’t think it is possible to export a single user session as JSON. If you go to the User Session section in the UI, the details are very in depth so you should be able to determine if a user or a specific session has the correct number of user actions there. Another option is to use the User Session Query to pull the user sessions for a certain application that have a certain number of user actions or above (\>=).

Check out the user session query here: [Custom queries, segmentation, and aggregation of session data in RUM Classic — Dynatrace Docs](https://www.dynatrace.com/support/help/how-to-use-dynatrace/real-user-monitoring/how-to-use-real-user-monitoring/cross-application-user-session-analytics/custom-queries-segmentation-and-aggregation-of-session-data/)

Thanks,

David Nicholls

---

<div class="post-metadata">

**Author:** ![rastislav\_danis](https://avatars.discourse-cdn.com/v4/letter/r/b9bd4f/32.png) [@rastislav\_danis](https://community.dynatrace.com/u/rastislav_danis)\
**Post date:** [July 17, 2019, 10:29am UTC](https://community.dynatrace.com/t/is-it-possible-to-export-a-single-user-session-with-user-actions-as-a-json-file/21298/3 "2019-07-17T10:29:50Z")

</div>

Yes there is a way, use USQL (either via api or GUI - in User Sessions page):

SELECT useraction.name, JSON FROM usersession WHERE userSessionId IN (“session\_id”)

Where session\_id is id of your session.

---

<div class="post-metadata">

**Author:** ![rastislav\_danis](https://avatars.discourse-cdn.com/v4/letter/r/b9bd4f/32.png) [@rastislav\_danis](https://community.dynatrace.com/u/rastislav_danis)\
**Post date:** [July 17, 2019, 10:57am UTC](https://community.dynatrace.com/t/is-it-possible-to-export-a-single-user-session-with-user-actions-as-a-json-file/21298/4 "2019-07-17T10:57:44Z")

</div>

You can get session\_id value from url - it’s last numeric string behing “x” sign.

F.e. if url contains “sessionId=1563360038168x1563360083537x192889524”, then session\_id should be “192889524”.

Or you can check session\_id by USQL when you know other parameters like session start time and user id.
