16 Jul 2019 01:56 PM
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
Solved! Go to Solution.
16 Jul 2019 04:37 PM
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: https://www.dynatrace.com/support/help/how-to-use-dynatrace/real-user-monitoring/how-to-use-real-use...
Thanks,
David Nicholls
17 Jul 2019 11:29 AM
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.
17 Jul 2019 11:57 AM
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.