# Alert if process restarts x number of times within a period

**URL:** <https://community.dynatrace.com/t/alert-if-process-restarts-x-number-of-times-within-a-period/21450>\
**Category:** Alerting\
**Tags:** process-groups, problems-classic\
**Created:** [February 7, 2021, 5:17pm UTC](https://community.dynatrace.com/t/alert-if-process-restarts-x-number-of-times-within-a-period/21450 "2021-02-07T17:17:41Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![michael\_joseph](https://avatars.discourse-cdn.com/v4/letter/m/e56c9b/32.png) [@michael\_joseph](https://community.dynatrace.com/u/michael_joseph)\
**Post date:** [February 7, 2021, 5:17pm UTC](https://community.dynatrace.com/t/alert-if-process-restarts-x-number-of-times-within-a-period/21450/1 "2021-02-07T17:17:41Z")

</div>

We have identified an issue with some of our applications that they will sometimes restart several times in a short period of time. The application becomes available until the next time some execution causes it to restart again. Is there a way to alert when a process restarts x number of times in a period? I see we can check if x number of processes are available or if the process becomes unavailable. I checked to see if the restart events where available in charting to see if I could create a custom event but I can’t locate a metric within there.

---

<div class="post-metadata">

**Author:** ![Babar\_Qayyum](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/babar_qayyum/32/13620_2.png) [@Babar\_Qayyum](https://community.dynatrace.com/u/Babar_Qayyum)\
**Post date:** [February 8, 2021, 3:22am UTC](https://community.dynatrace.com/t/alert-if-process-restarts-x-number-of-times-within-a-period/21450/2 "2021-02-08T03:22:54Z")

</div>

Hello [@Michael P.](https://answers.dynatrace.com/users/5967/view.html)

At the moment this option is not available. You can open an [RFE](https://answers.dynatrace.com/content/idea/post.html?space=482) to include this feature.

Regards,

Babar

---

<div class="post-metadata">

**Author:** ![Yosi\_Neuman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/yosi_neuman/32/9845_2.png) [@Yosi\_Neuman](https://community.dynatrace.com/u/Yosi_Neuman)\
**Post date:** [February 8, 2021, 3:52pm UTC](https://community.dynatrace.com/t/alert-if-process-restarts-x-number-of-times-within-a-period/21450/3 "2021-02-08T15:52:10Z")

</div>

Hi [@Michael P.](https://answers.dynatrace.com/users/5967/view.html)

If those restarts are listed in logs can set [Custom metrics for Log Monitoring](https://www.dynatrace.com/support/help/shortlink/log-monitoring-custom-metric) and set [custom alert](https://www.dynatrace.com/support/help/shortlink/event-types-custom-alerts) on them

HTH

Yos

---

<div class="post-metadata">

**Author:** ![michael\_joseph](https://avatars.discourse-cdn.com/v4/letter/m/e56c9b/32.png) [@michael\_joseph](https://community.dynatrace.com/u/michael_joseph)\
**Post date:** [February 8, 2021, 4:03pm UTC](https://community.dynatrace.com/t/alert-if-process-restarts-x-number-of-times-within-a-period/21450/4 "2021-02-08T16:03:17Z")

</div>

Hi [@Yos N.](https://answers.dynatrace.com/users/3891/view.html) These are Azure app services which currently Dynatrace does not capture the logs.

---

<div class="post-metadata">

**Author:** ![Yosi\_Neuman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/yosi_neuman/32/9845_2.png) [@Yosi\_Neuman](https://community.dynatrace.com/u/Yosi_Neuman)\
**Post date:** [February 8, 2021, 4:22pm UTC](https://community.dynatrace.com/t/alert-if-process-restarts-x-number-of-times-within-a-period/21450/5 "2021-02-08T16:22:25Z")

</div>

Hi [@Michael P.](https://answers.dynatrace.com/users/5967/view.html)

So there is no logs 😞 , stand corrected.

Just a naive question for dummies like me that do not know Azure, can those restart be set as Azure alert and retrieve them with setting of [metric events for alerting](https://www.dynatrace.com/support/help/shortlink/azure-monitor-integration#set-up-metric-events-for-alerting) under [Azure Monitor](https://www.dynatrace.com/support/help/shortlink/azure-monitor-integration)?

Yos

---

<div class="post-metadata">

**Author:** ![Yosi\_Neuman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/yosi_neuman/32/9845_2.png) [@Yosi\_Neuman](https://community.dynatrace.com/u/Yosi_Neuman)\
**Post date:** [February 9, 2021, 5:57am UTC](https://community.dynatrace.com/t/alert-if-process-restarts-x-number-of-times-within-a-period/21450/6 "2021-02-09T05:57:20Z")

</div>

And from glancing over the fresh new [blog](https://www.dynatrace.com/news/blog/native-log-support-for-kubernetes-and-multicloud-enables-faster-innovation-at-enterprise-scale/) , its look like logs will be also available for Azure in the near feature.
