Azure Log Alert Webhook with Azure Logic App

Step-by-Step Guidance

  • Query in Azure Logs: In this situation, we try to get received bytes more than a certain amount in the past 5 minutes.
VMConnection
| where TimeGenerated > ago(5m)
| where BytesReceived > <certain amount>
| where Computer == "<computer name>"
  • Custom Triggering JSON Payload: This would be used in “The 1st Trigger”. Essentially, this is the content that would trigger the whole webhook actions.
{
"alertname":"#alertrulename",
"IncludeSearchResults":true
}

Azure Logic App Detailed Setup

  1. Browse the VM you have set up for Azure log alert and go to “Alerts” → “Manage alert rules” to get the Azure log alert name.

--

--

--

Learning new things about Kubernetes every day. Hopefully, the learning notes could help people on the same journey!

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Inside RSK Java implementation: the project

ChatBot with Xamarin.Forms and Luis.AI

Debugging Concurrent Systems with a Model Checker

Scrum Values — A guide to decision making

5 Tools I Have Been Introduced To at TribalScale

Here we go again… Getting Rid of IT?

Coding my first Android app (as a Product Manager)

Dynamic Code Generator using YAML config and Jinja2 Templates

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Jonathan

Jonathan

Learning new things about Kubernetes every day. Hopefully, the learning notes could help people on the same journey!

More from Medium

Celebal Technologies has earned the Kubernetes on Microsoft Azure Advanced Specialization

Accessing Azure Key Vault from a Logic App using a Managed Identity

How to: Including a bunch of Work Items on Azure DevOps

How to access custom attributes from Azure AD-B2C using Graph API(s)