Hello @rohith v ,
Welcome to Microsoft Q&A Platform. Thank you for reaching out & hope you are doing well.
I understand that you would like to know how to configure alerts for Azure web application firewall.
You can configure alerts in the Azure portal by going to the alerts section of your Application gateway or Azure Front Door (depending upon which WAF you are using).
Steps are as below:
- In your Azure portal, go to your Application gateway/Azure Front Door profile.
- Go to Alerts tab under Monitoring section.
- Select New alert rule for metrics listed in Metrics section.
- Specify all the conditions, actions and details to create the alert rule.
Application gateway WAF V2 metrics that are available to configure alerts:
Azure Front Door WAF metric that is available to configure alerts:
Web Application Firewall Request Count is the only available metric in Front Door WAF.
If you want to configure an alert for something other than the available platform metrics, then you have to create a custom log alert.
A log alert rule monitors a resource by using a Log Analytics query to evaluate resource logs at a set frequency. If the conditions are met, an alert is fired. Because you can use Log Analytics queries, you can perform advanced logic operations on your data and use the robust KQL features to manipulate log data.
Refer: https://video2.skills-academy.com/en-us/azure/azure-monitor/alerts/alerts-types#log-alerts
Kindly let us know if the above helps or you need further assistance on this issue.
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.