Skip to content

Commit 59443d9

Browse files
authored
Merge pull request #265802 from AbbyMSFT/log-alert-health
Resource health for log search alert rules
2 parents 8ac0c50 + 1fb9c95 commit 59443d9

File tree

4 files changed

+85
-0
lines changed

4 files changed

+85
-0
lines changed
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
---
2+
title: Monitor the health of log search alert rules
3+
description: This article how to monitor the health of a log search alert rule.
4+
ms.topic: how-to
5+
author: AbbyMSFT
6+
ms.author: abbyweisberg
7+
ms.reviewer: nolavime
8+
ms.date: 02/08/2024
9+
10+
#Customer-intent: As a alerts administrator, I want to know when there are issues with an alert rule, so I can act to resolve the issue or know when to contact Microsoft for support.
11+
---
12+
13+
# Monitor the health of log search alert rules
14+
15+
[Azure Service Health](../../service-health/overview.md) monitors the health of your cloud resources, including log search alert rules. When a log search alert rule is healthy, the rule runs and the query executes successfully. This article explains how to view the health status of your log search alert rule, and tells you what to do if there are issues affecting your log search alert rules.
16+
17+
Azure Service Health monitors:
18+
- [Resource health](../../service-health/resource-health-overview.md): information about the health of your individual cloud resources, such as a specific log search alert rule.
19+
- [Service health](../../service-health/service-health-overview.md): information about the health of the Azure services and regions you're using, which might affect your log search alert rule, including communications about outages, planned maintenance activities, and other health advisories.
20+
21+
## Permissions required
22+
23+
- To view the health of a log search alert rule, you need `read` permissions to the log search alert rule.
24+
- To set up health status alerts, you need `write` permissions to the log search alert rule, as provided by the [Monitoring Contributor built-in role](../roles-permissions-security.md#monitoring-contributor), for example.
25+
26+
## View health and set up health status alerts for log search alert rules
27+
28+
To view the health of your log search alert rule and set up health status alerts:
29+
30+
1. In the [portal](https://portal.azure.com/), select **Monitor**, then **Alerts**.
31+
1. From the top command bar, select **Alert rules**. The page shows all your alert rules on all subscriptions.
32+
1. Select the log search alert rule that you want to monitor.
33+
1. From the left pane, under **Help**, select **Resource health**.
34+
35+
:::image type="content" source="media/log-search-alert-health/log-search-alert-resource-health.png" alt-text="Screenshot of the Resource health section in a log search alert rule.":::
36+
37+
1. The **Resource health** screen shows:
38+
39+
- **Health history**: Indicates whether Azure Service Health detected query execution issues in the specific log search alert rule. Select the health event to view details about the event.
40+
- **Azure service issues**: Displayed when a known issue with an Azure service might affect execution of the log search alert query. Select the message to view details about the service issue in Azure Service Health.
41+
42+
> [!NOTE]
43+
> - Service health notifications do not indicate that your log search alert rule is necessarily affected by the known service issue. If your log search alert rule health status is **Available**, Azure Service Health did not detect issues in your alert rule.
44+
45+
:::image type="content" source="media/log-search-alert-health/log-search-alert-resource-health-page.png" alt-text="Screenshot of the Resource health page for a log search alert rule.":::
46+
47+
This table describes the possible resource health status values for a log search alert rule:
48+
49+
| Resource health status | Description |Recommended steps|
50+
|---|---|
51+
|Available|There are no known issues affecting this log search alert rule.| |
52+
|Unknown|This log search alert rule is currently disabled or in an unknown state.|[Log alert was disabled](alerts-troubleshoot-log.md#log-alert-was-disabled).|
53+
|Unknown reason|This log search alert rule is currently unavailable due to an unknown reason.|Check if the alert rule was recently created. Health status is updated after the rule completes its first evaluation.|
54+
|Degraded due to unknown reason|This log search alert rule is currently degraded due to an unknown reason.| |
55+
|Setting up resource health|Setting up Resource health for this resource.|Check if the alert rule was recently created. Health status is updated after the rule completes its first evaluation.|
56+
|Semantic error |The query is failing because of a semantic error. |Review the query and try again.|
57+
|Syntax error |The query is failing because of a syntax error.| Review the query and try again.|
58+
|The response size is too large|The query is failing because its response size is too large.|Review your query and the [log queries limits](../service-limits.md#log-queries-and-language).|
59+
|Query consuming too many resources |The query is failing because it's consuming too many resources.|Review your query. View our [best practices for optimizing log queries](../logs/query-optimization.md).|
60+
|Query validation error|The query is failing because of a validation error. |Check if the table referenced in your query is set to [Compare the Basic and Analytics log data plans](../logs/basic-logs-configure.md#compare-the-basic-and-analytics-log-data-plans), which doesn't support alerts. |
61+
|Workspace not found |The target Log Analytics workspace for this alert rule couldn't be found. |The target specified in the scope of the alert rule was moved, renamed, or deleted. Recreate your alert rule with a valid Log Analytics workspace target.|
62+
|Application Insights resource not found|The target Application Insights resource for this alert rule couldn't be found. |The target specified in the scope of the alert rule was moved, renamed, or deleted. Recreate your alert rule with a valid Log Analytics workspace target. |
63+
|Query is throttled|The query is failing for the rule because of throttling (Error 429). |Review your query and the [log queries limits](../service-limits.md#user-query-throttling). |
64+
|Unauthorized to run query |The query is failing because the query doesn't have the correct permissions. | Permissions are based on the permissions of the last user that edited the rule. If you suspect that the query doesn't have access, any user with the required permissions can edit or update the rule. Once the rule is saved, the new permissions take effect.</br>If you're using managed identities, check that the identity has permissions on the target resource. See [managed identities](alerts-create-log-alert-rule.md#managed-id).|
65+
|NSP validation failed |The query is failing because of NSP validations issues.| Review your network security perimeter rules to ensure your alert rule is correctly configured.|
66+
|Active alerts limit exceeded |Alert evaluation failed due to exceeding the limit of fired (non- resolved) alerts per day. |See [Azure Monitor service limits](../service-limits.md). |
67+
|Dimension combinations limit exceeded | Alert evaluation failed due to exceeding the allowed limit of dimension combinations values meeting the threshold.|See [Azure Monitor service limits](../service-limits.md). |
68+
69+
70+
## Add a new resource health alert
71+
72+
1. Select **Add resource health alert**.
73+
74+
1. The **Create alert rule** wizard opens, with the **Scope** and **Condition** panes prepopulated. If necessary, you can edit and modify the scope and condition of the alert rule at this stage.
75+
76+
1. Follow the rest of the steps in [Create or edit an activity log, service health, or resource health alert rule](../alerts/alerts-create-activity-log-alert-rule.md).
77+
78+
## Next steps
79+
80+
Learn more about:
81+
- [Querying log data in Azure Monitor Logs](../logs/get-started-queries.md).
82+
- [Create or edit a log alert rule](alerts-create-log-alert-rule.md)
83+
64.1 KB
Loading
57.1 KB
Loading

articles/azure-monitor/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1320,6 +1320,8 @@ items:
13201320
items:
13211321
- name: Manage alert rules
13221322
href: alerts/alerts-manage-alert-rules.md
1323+
- name: Monitor the health of log search alert rules
1324+
href: alerts/log-alert-rule-health.md
13231325
- name: Manage alert instances
13241326
href: alerts/alerts-manage-alert-instances.md
13251327
- name: Update alerts for region moves

0 commit comments

Comments
 (0)