Monitor Azure Logic Apps
Why Monitoring Matters
Effective monitoring helps you understand runtime performance, detect failures early, and maintain SLA compliance for your enterprise workflows.
Built‑in Run History
Every Logic App execution is recorded in the Run History view of the Azure portal.
- Open the Logic App resource in the Azure portal.
- Select Runs history from the left navigation.
- Inspect individual runs to view input, output, and any errors.
 
    Azure Monitor Integration
You can forward Logic App diagnostics to Azure Monitor, Log Analytics, and Application Insights.
Log Analytics
            Application Insights
        Enable Diagnostic Settings
- Navigate to Diagnostic settings in the Logic App resource.
- Click Add diagnostic setting.
- Select Send to Log Analytics workspace and choose your workspace.
- Enable WorkflowRuntime and RunHistory logs.
// Example query in Log Analytics (Kusto)
AzureDiagnostics
| where ResourceProvider == "MICROSOFT.LOGIC"
| summarize count() by StatusCode, bin(TimeGenerated, 5m)
| order by TimeGenerated descConnect to Application Insights
Application Insights provides end‑to‑end tracing and performance counters.
- Create an Application Insights resource.
- In the Logic App, go to Diagnostic settings → Add setting.
- Select Send to Application Insights and provide the Instrumentation Key.
// Sample telemetry query
requests
| where cloud_RoleName == "my-logic-app"
| summarize count() by resultCode, bin(timestamp, 1m)Alert Rules
Set up alerts to be notified of failures, latency spikes, or custom conditions.
| Alert Name | Condition | Action | 
|---|---|---|
| Logic App Failure | Run status = Failed | Email / Webhook | 
| High Latency | Average duration > 5 min (last 30 min) | SMS / Teams | 
Export Run History as JSON
You can programmatically retrieve run details via REST API.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{rg}/providers/Microsoft.Logic/workflows/{logicAppName}/runs?api-version=2022-07-01
Headers:
Authorization: Bearer {access_token}