Configure dynamic email subjects based on log analytics (azure Alerts)

Pena Javier 0 Reputation points
2024-01-18T16:07:35.2666667+00:00

Hello, I'm working on creating an alert monitoring system based on log analytics. I managed to configure the alerts but I would like to change the subject of the email dynamically to include some of the parameters I see in log analytics. Do you know if that is possible? How could I access the log analytics data from the email subject field? Thanks!

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. Monalla-MSFT 12,846 Reputation points
    2024-01-21T23:48:14.2966667+00:00

    Pena Javier - Welcome to Microsoft Q&A and thanks for reaching out to us. As far as i know, it is not possible to dynamically include log analytics data in the email subject field of an alert notification in Azure Monitor. The email subject field can only be customized with static text.

    However, you can use the webhook action to send the alert data to an external system, such as a Logic App, where you can further process the data and customize the email subject field as needed.

    Hope this helps. and please feel free to reach out if you have any further questions.


    If the above response was helpful, please feel free to "Accept as Answer" and click "Yes" so it can be beneficial to the community.

    1 person found this answer helpful.