# Is there a way for Dynatrace to create an alert (show a problem) when for example a user logs into an application

**URL:** <https://community.dynatrace.com/t/is-there-a-way-for-dynatrace-to-create-an-alert-show-a-problem-when-for-example-a-user-logs-into-an-application/20706>\
**Category:** Alerting\
**Tags:** problems-classic\
**Created:** [October 29, 2020, 7:30pm UTC](https://community.dynatrace.com/t/is-there-a-way-for-dynatrace-to-create-an-alert-show-a-problem-when-for-example-a-user-logs-into-an-application/20706 "2020-10-29T19:30:58Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![oscar\_trobo](https://avatars.discourse-cdn.com/v4/letter/o/e47774/32.png) [@oscar\_trobo](https://community.dynatrace.com/u/oscar_trobo)\
**Post date:** [October 29, 2020, 7:30pm UTC](https://community.dynatrace.com/t/is-there-a-way-for-dynatrace-to-create-an-alert-show-a-problem-when-for-example-a-user-logs-into-an-application/20706/1 "2020-10-29T19:30:58Z")

</div>

Is there a way for Dynatrace to create an alert (show a problem) when for example a user logs into an application

---

<div class="post-metadata">

**Author:** ![ChadTurner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/chadturner/32/161_2.png) [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Post date:** [October 29, 2020, 7:38pm UTC](https://community.dynatrace.com/t/is-there-a-way-for-dynatrace-to-create-an-alert-show-a-problem-when-for-example-a-user-logs-into-an-application/20706/2 "2020-10-29T19:38:50Z")

</div>

I dont think so unless you try to use a custom metric or set a conversion goal for the users but even that wont generate an alert.

---

<div class="post-metadata">

**Author:** ![AntonioSousa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antoniosousa/32/50_2.png) [@AntonioSousa](https://community.dynatrace.com/u/AntonioSousa)\
**Post date:** [October 29, 2020, 7:47pm UTC](https://community.dynatrace.com/t/is-there-a-way-for-dynatrace-to-create-an-alert-show-a-problem-when-for-example-a-user-logs-into-an-application/20706/3 "2020-10-29T19:47:59Z")

</div>

Hi Oscar,

What is the use case here? Can’t imagine a real scenario where logging in is an alert/problem. Not even an event. Can you imagine what would happen when you have sites that have thousands of logins per minute? Can you please clarify?

---

<div class="post-metadata">

**Author:** ![khoros\_anonymous](https://avatars.discourse-cdn.com/v4/letter/k/f9ae1b/32.png) [@khoros\_anonymous](https://community.dynatrace.com/u/khoros_anonymous)\
**Post date:** [October 29, 2020, 8:04pm UTC](https://community.dynatrace.com/t/is-there-a-way-for-dynatrace-to-create-an-alert-show-a-problem-when-for-example-a-user-logs-into-an-application/20706/4 "2020-10-29T20:04:09Z")

</div>

You have control over the backend? I ask since if you rely on the JS if the user blocks the probe you will never be able to see it.

I would think that this is an special/specific use case? anyway… if you do have access to the backend, then you could create a key request for the login request and create a custom alert…

If not.. you can try to mark the action of login in the app as key action.. and setup an anomaly for that… but i don’t really know if will work, something like this:

 ![27091-1604001477103.png](https://global.discourse-cdn.com/dynatrace/original/3X/6/4/647ccb52daa22984c54757b8358cfb1b486b28ef.png)

or also create a custom alert for the key user action… something like:

 ![27083-1604001701394.png](https://global.discourse-cdn.com/dynatrace/original/3X/4/b/4b305febe4e0ba24757cca7afe7e942d82cf1acb.png)

and alert when is higher than 0 in 1 minute in a 3 minutes window… If you have access to any logs… you might be able to alert it there also.

That’s the only things that come to mind.

Cheers.

---

<div class="post-metadata">

**Author:** ![oscar\_trobo](https://avatars.discourse-cdn.com/v4/letter/o/e47774/32.png) [@oscar\_trobo](https://community.dynatrace.com/u/oscar_trobo)\
**Post date:** [October 29, 2020, 8:05pm UTC](https://community.dynatrace.com/t/is-there-a-way-for-dynatrace-to-create-an-alert-show-a-problem-when-for-example-a-user-logs-into-an-application/20706/5 "2020-10-29T20:05:00Z")

</div>

Hi

thanks by reponse

they want to generate an alert, for when a specific user logs into the application, or performs a specific action.

I would like to know if this is possible.

A greeting

---

<div class="post-metadata">

**Author:** ![khoros\_anonymous](https://avatars.discourse-cdn.com/v4/letter/k/f9ae1b/32.png) [@khoros\_anonymous](https://community.dynatrace.com/u/khoros_anonymous)\
**Post date:** [October 29, 2020, 8:12pm UTC](https://community.dynatrace.com/t/is-there-a-way-for-dynatrace-to-create-an-alert-show-a-problem-when-for-example-a-user-logs-into-an-application/20706/6 "2020-10-29T20:12:44Z")

</div>

That is even more tricky! When the user login, there is any action that has his user ID number? or something specific about it?

If they want to alert when the user executes a Delete (for example) you could apply something about what i said before.

Strange use case really, but you could try it…

---

<div class="post-metadata">

**Author:** ![wolfgang\_beer](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/wolfgang_beer/32/14717_2.png) [@wolfgang\_beer](https://community.dynatrace.com/u/wolfgang_beer)\
**Post date:** [October 30, 2020, 7:10am UTC](https://community.dynatrace.com/t/is-there-a-way-for-dynatrace-to-create-an-alert-show-a-problem-when-for-example-a-user-logs-into-an-application/20706/7 "2020-10-30T07:10:28Z")

</div>

Sure, you can configure an alert on any metric in Dynatrace, either conversion metric, login count on backend service, or user action count for a subscribed key user action.

---

<div class="post-metadata">

**Author:** ![oscar\_trobo](https://avatars.discourse-cdn.com/v4/letter/o/e47774/32.png) [@oscar\_trobo](https://community.dynatrace.com/u/oscar_trobo)\
**Post date:** [November 3, 2020, 2:06pm UTC](https://community.dynatrace.com/t/is-there-a-way-for-dynatrace-to-create-an-alert-show-a-problem-when-for-example-a-user-logs-into-an-application/20706/8 "2020-11-03T14:06:58Z")

</div>

Hi Wolfgang

thanks for response.

how can I do it?

Marking a key request is based on an action, not on the action being performed by a specific user.

IF I try to create a Multidimensional analysis in a service I can’t do it, because the requestt attribute where the user’s uid is stored is not numeric.

Can you help me?

Thanks

---

<div class="post-metadata">

**Author:** ![oscar\_trobo](https://avatars.discourse-cdn.com/v4/letter/o/e47774/32.png) [@oscar\_trobo](https://community.dynatrace.com/u/oscar_trobo)\
**Post date:** [November 3, 2020, 2:10pm UTC](https://community.dynatrace.com/t/is-there-a-way-for-dynatrace-to-create-an-alert-show-a-problem-when-for-example-a-user-logs-into-an-application/20706/9 "2020-11-03T14:10:29Z")

</div>

Hi Dante

Yes, I have a requestt attribute, in users tag and I can see the session, but I can’t find a way to create an alerted or a specific event based on whether the user navigation is equal to the user tag “xdddL” for example.

A greeting

---

<div class="post-metadata">

**Author:** ![khoros\_anonymous](https://avatars.discourse-cdn.com/v4/letter/k/f9ae1b/32.png) [@khoros\_anonymous](https://community.dynatrace.com/u/khoros_anonymous)\
**Post date:** [November 3, 2020, 2:48pm UTC](https://community.dynatrace.com/t/is-there-a-way-for-dynatrace-to-create-an-alert-show-a-problem-when-for-example-a-user-logs-into-an-application/20706/10 "2020-11-03T14:48:20Z")

</div>

I think that you should be able to create Calculated service metrics using the request attribute with the user data:

 ![27181-1604414865671.png](https://global.discourse-cdn.com/dynatrace/original/3X/8/2/82d0c47850ca58163cb97291a6ac425771bc2b4b.png)

Since you said that you have request attributes, you should be able to create that metric.

---

<div class="post-metadata">

**Author:** ![oscar\_trobo](https://avatars.discourse-cdn.com/v4/letter/o/e47774/32.png) [@oscar\_trobo](https://community.dynatrace.com/u/oscar_trobo)\
**Post date:** [November 13, 2020, 3:48pm UTC](https://community.dynatrace.com/t/is-there-a-way-for-dynatrace-to-create-an-alert-show-a-problem-when-for-example-a-user-logs-into-an-application/20706/11 "2020-11-13T15:48:44Z")

</div>

Hi to all

Thanks for response

Hi to all

Thanks for response. In case it’s any help

Finally, you can do it by creating a calculated metric, using the UID value of the user as a reference (in a request attribute) and a custom alerting event.

A greeting
