# Dashboard to capture \>10 seconds for user actions in Dynatrace managed.

**URL:** <https://community.dynatrace.com/t/dashboard-to-capture-10-seconds-for-user-actions-in-dynatrace-managed/21275>\
**Category:** Dashboarding\
**Tags:** user-actions, dashboards-classic\
**Created:** [July 12, 2019, 7:28am UTC](https://community.dynatrace.com/t/dashboard-to-capture-10-seconds-for-user-actions-in-dynatrace-managed/21275 "2019-07-12T07:28:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![suraj\_gupta3](https://avatars.discourse-cdn.com/v4/letter/s/45deac/32.png) [@suraj\_gupta3](https://community.dynatrace.com/u/suraj_gupta3)\
**Post date:** [July 12, 2019, 7:28am UTC](https://community.dynatrace.com/t/dashboard-to-capture-10-seconds-for-user-actions-in-dynatrace-managed/21275/1 "2019-07-12T07:28:43Z")

</div>

We have a requirement where we need to capture user actions which takes more than 10seconds in dynatrace managed.

This was quite easily achievable in dynatrace appmon by defining a threshold in measure but not sure how to get this data in dynatrace managed.

Regards,

Suraj Gupta

---

<div class="post-metadata">

**Author:** ![skrystosik](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/skrystosik/32/21133_2.png) [@skrystosik](https://community.dynatrace.com/u/skrystosik)\
**Post date:** [July 12, 2019, 8:52am UTC](https://community.dynatrace.com/t/dashboard-to-capture-10-seconds-for-user-actions-in-dynatrace-managed/21275/2 "2019-07-12T08:52:58Z")

</div>

You can define thresholds in anomaly detection settings for application:

 ![21292-c4e5188f-6752-44f6-9437-24ec216e495a.jpeg](https://global.discourse-cdn.com/dynatrace/original/3X/9/4/9439e8a70b8c19a3ce010ded71026dda8a6b85ab.jpeg)

You can set static thresholds here and when action duration will be longer than 10s, problem will be raised in dynatrace.

It’s not possible for filtering custom chart just to display user actions longer than 10s. There is no filtering option there. But you can make it using USQL tile:

> **[Dynatrace Blog](https://www.dynatrace.com/news/blog/)**
>
> Stay updated on the latest news on observability, automation, AI, and app security. Look here for actionable insights for optimizing your digital ecosystem.

Sebastian

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [July 12, 2019, 10:23am UTC](https://community.dynatrace.com/t/dashboard-to-capture-10-seconds-for-user-actions-in-dynatrace-managed/21275/3 "2019-07-12T10:23:26Z")

</div>

All user actions are captured. You can define or filter which actions get captured, but on based on the duration.

If you need to display/chart user actions taking longer than 10s, you can do that using USQL or using custom chart. But for custom chart you need to have those actions defined as key user action.

With USQL you will can get a “session oriented” view, with custom chart only an “application oriented” view.

---

<div class="post-metadata">

**Author:** ![suraj\_gupta3](https://avatars.discourse-cdn.com/v4/letter/s/45deac/32.png) [@suraj\_gupta3](https://community.dynatrace.com/u/suraj_gupta3)\
**Post date:** [July 12, 2019, 1:12pm UTC](https://community.dynatrace.com/t/dashboard-to-capture-10-seconds-for-user-actions-in-dynatrace-managed/21275/4 "2019-07-12T13:12:55Z")

</div>

I’ve used below query to pull \>= 10 seconds user action duration. Please have a look and let me know if this would fulfill my requirement.

SELECT useraction.application, count(useraction.name) as UserActionCount FROM usersession WHERE userType = “REAL\_USER” AND useraction.duration \>= 10000 GROUP BY useraction.application ORDER BY useraction.application

---

<div class="post-metadata">

**Author:** ![skrystosik](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/skrystosik/32/21133_2.png) [@skrystosik](https://community.dynatrace.com/u/skrystosik)\
**Post date:** [July 12, 2019, 1:31pm UTC](https://community.dynatrace.com/t/dashboard-to-capture-10-seconds-for-user-actions-in-dynatrace-managed/21275/5 "2019-07-12T13:31:35Z")

</div>

you can add to select useraction.duration as well. The question is as well if you want to focus on all user action or for example on median values. If so, you can use MEDIAN(useraction.duration).

You can as well make this query not from application perspective but from user action perspective and list instances of user actions that has duration 10s+ (in such case use FROM useraction not usersession. This will change as well some fields you are using.

Sebastian
