Trying to create a Generic alert using log search alert rule in application insight

Saransh Gaur 40 Reputation points Microsoft Employee
2024-06-05T17:59:15.47+00:00

Using Application Insights, log search alert rules can be created by writing queries on telemetry sent through the app. The problem is that we have to write a different alert for every event name and their logic, which includes a threshold value and which requires maintenance effort. The threshold value and related conditions need to be set in the alert UX of the Application Insights portal, we are now looking to create a generic alert where the threshold value can be dynamic. Is there a method for doing this?

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,183 questions
0 comments No comments
{count} votes

Accepted answer
  1. Stanislav Zhelyazkov 23,421 Reputation points MVP
    2024-06-06T07:16:31.2+00:00

    Hi,

    This is not possible. If you have different threshold you should create different alert rule. Even if you achieve something in the query where you have let's say some column that sets value 0 for unhealthy and value 1 for healthy you will still have to update the query every time you want to add new event which does not differ and it is more complex than creating alert rules.

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.