Azure - Application Event Log Alerts - azure

How to create email alerts for Application Event Logs. We can see the event logs from the Diagnostic Tools of the app service but not sure about the email alerts. Any help is much appreciated.
Thanks,
Saurabh

How to create email alerts for Application Event Logs?
Yes, we can create email alerts for Azure app service using application Insights by following the below steps:
After creating Application Insights.
Goto Alerts under Monitoring then click on create and select an alert rule.
After creating the alert rule click on complete.
In alert rules add the condition according to your requirement. In my case i have given condition as Whenever the average failed locations is greater than or equal to 2.
Now we can fire the alert based on the requirement.
You can see whether the alert triggered/fired or not in the below screenshot:
You will receive an email alert to the email ID which you have configured in the above steps like below screenshot:
References:-
Send alerts from Azure Application Insights - Azure Monitor | Microsoft Docs.
Monitor application via Application Insights and send alert.

Related

Crash notifications from node.js app hosted on Azure

I have a node.js server running on an Azure app service. I would like to receive an automated email notification in the event that the node app crashes. I've been Googling and there seem to be so many options around monitoring provided by Azure, that it's quite overwhelming. I looked at Azure Application Insights, but couldn't see the functionality I'm after + it seems expensive.
Is there a simple Azure approach for monitoring node.js app crashes, or a free third party solution which would do it?
If you are looking for receiving an email notification when your node.js app crashes or when returning Http 5XX status code, You can use azure monitor alert and then setting email notification in the action group.
Go to your Azure portal and navigate to your app service's page> under Monitoring click on Alerts blade> create new alert rule and add condition> Select signal type Http Server Errors.
Now set Thresholds as required> then under "Actions", click on the "Add action group" button and create a new action group that includes your email address as a notification receiver> Save the alert rule.
Then go your action group's page and click on the "Add action" button and select "Email/SMS/Push/Voice" as the action type> add email address details> Save the action group.
Additionally you may also refer to this document for setting threshold and understanding metrics: https://learn.microsoft.com/en-us/azure/app-service/web-sites-monitor

Is it possible to get an email notification when I close an Azure Sentinel incident?

I want to send out an email when I close an incident in azure sentinel - or on any update I make like changing the severity or assignation - is this possible or can someone suggest any workarounds?
Thanks!
Yes ,You can get alerts to your email using azure Monitor. Here is Screenshot of how it worked for me.
REFERENCES:
Closing an Incident in Azure Sentinel and Dismissing an Alert in Azure Security Center - Microsoft Tech Community
Azure Monitor Logs reference - SecurityIncident | Microsoft Docs
Sentinel Email Notification Logic App – Azure Cloud & AI Domain Blog (azurecloudai.blog)

Send email when an application error occurs in Azure web app

Use case is as soon as an error occurs in application, support team should receive a notification.
Looking for an out of box solution in Azure.
Current system configured for Diagnostic logs with below settings:
Application Logging (Blob) - On
Logging Level - Error
Retention period - X days.
As far as I know, azure app service has Alerts feature. By using this feature, you could define which metrics will send the email.
About how to use it, you could refer to below images:
1.Find the alters in your from azure portal app service.
2.Click add alerts
3.Define alert rule

AzureWebApp: Monitor Application Logs

I'm building an Azure web-app and if there are certain unexpected errors, I want to be able to bubble it up in the Azure Dashboard / add alerts.
Any System.Diagnostics.Trace.TraceError() messages are logged to the ApplicationLog. Is there a way to add alert/monitoring-graphs for these in Azure Portal?
I think and most flexible option for configuring alerts on Web Apps is enabling the Application insights have the App Insight be one of your event sources:
https://azure.microsoft.com/en-us/documentation/articles/app-insights-search-diagnostic-logs/
Once you have the Application Insight setup then you can easily set any kind of alerts based on the diagnostics that are collected:
https://azure.microsoft.com/en-gb/documentation/articles/app-insights-alerts/
Aram's links below really helps. Please read them.
To Get this working:
Add the ApplicationInsights to your project.
(Optional) If you want log traces (System.Diagnostics.Trace) to be searchable on insights, add Microsoft.ApplicationInsights.TraceListener nuget to your project.
Use telemetryClient.TrackException() to place a server exception
when you hit a critical error.
Add an alert on Azure portal to check for ServerExceptions within the given time window.

Azure automated email notifications of errors in ApplicationLog

I have an Azure cloud application / Webrole and Worker role. Our company has the need to receive automated logs via email for SOX compliance reasons.
Is there anything out of the box with Azure which allows me to automatically email / notify the support team of various log activities or even email the log entries themselves automatically? Or, do I have to write something to do this?
For example: In the "Audit Logs" anytime there is a Level of Warning or above, email support team.
A couple good options:
Most Cloud Service logs get written to Azure Storage - the Azure WebJobs SDK is perfect for creating a simple WebJob that can monitor the BLOBs and send you applicable notifications.
Application Insights has easily configurable alerts that can monitor and notify you of issues with your application.

Resources