Azure custom Log alerts

Amar-Azure-Practice 661 Reputation points
2021-08-02T03:16:42.66+00:00

Hi
We have implemented custom logging for our app to write Information/Errors/Exceptions to Azure Log Analytics custom logs.

We need to setup alert on the custom logs that we capture to notify if any specific exception occurs.

please let me know is there ant direct way to do 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,037 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. George Moise 2,351 Reputation points Microsoft Employee
    2021-08-06T10:00:50.913+00:00

    Hello,

    The logs generated by your application will be stored in the Azure Log Analytics Workspace in a table with the name you defined when you configured the custom log collection, followed by _CL

    Now that you have that data in this table in the Azure Log Analytics Workspace, you can use the Kusto Query Language (KQL) to write a query that will find the exceptions you want to alert on, then just create an Azure Monitor Alert with that KQL Query as logic.

    More info:

    I hope it helps!
    BR,
    George

    0 comments No comments