Skip to content

Commit b3a9776

Browse files
Merge pull request #226610 from TomilolaAbiodun/patch-2
Update how-to-monitor-with-azure-monitor.md
2 parents 0ff8056 + 8d907f8 commit b3a9776

File tree

1 file changed

+36
-11
lines changed

1 file changed

+36
-11
lines changed

articles/purview/how-to-monitor-with-azure-monitor.md

Lines changed: 36 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Microsoft Purview admins can use Azure Monitor to track the operational state of
1818

1919
## Aggregated metrics
2020

21-
The metrics can be accessed from the Azure portal for a Microsoft Purview account. Access to the metrics is controlled by the role assignment of Microsoft Purview account. Users need to be part of the "Monitoring Reader" role in Microsoft Purview to see the metrics. Check out [Monitoring Reader Role permissions](../azure-monitor/roles-permissions-security.md#built-in-monitoring-roles) to learn more about the roles access levels.
21+
The metrics can be accessed from the Azure portal of a Microsoft Purview account. Access to the metrics is controlled by the role assignment of Microsoft Purview account. Users need to be part of the "Monitoring Reader" role in Microsoft Purview to see the metrics. Check out [Monitoring Reader Role permissions](../azure-monitor/roles-permissions-security.md#built-in-monitoring-roles) to learn more about the roles access levels.
2222

2323
The person who created the Microsoft Purview account automatically gets permissions to view metrics. If anyone else wants to see metrics, add them to the **Monitoring Reader** role, by following these steps:
2424

@@ -67,55 +67,80 @@ The following table contains the list of metrics available to explore in the Azu
6767
| Scan Failed | Automated scan | Sum <br> Count | Aggregate the failed data source scans over time period |
6868
| Scan time taken | Automated scan | Min <br> Max <br> Sum <br> Avg | Aggregate the total time taken by scans over time period |
6969

70-
## Sending Diagnostic Logs
70+
## Monitoring alerts
71+
72+
Alerts can be accessed from the Azure portal of a Microsoft Purview account. Access to the alerts is controlled by the role assignment of Microsoft Purview account just like metrics.
73+
A user can setup alert rules in their purview account to get notified when important monitoring events happen.
74+
75+
:::image type="content" source="./media/how-to-monitor-with-azure-monitor/step-one-alerts-setting.png" alt-text="Screenshot showing creating an alert." lightbox="./media/how-to-monitor-with-azure-monitor/step-one-alerts-setting.png":::
76+
77+
The user can also create specific alert rules and conditions for signals within purview.
78+
79+
:::image type="content" source="./media/how-to-monitor-with-azure-monitor/step-two-alerts-setting.png" alt-text="Screenshot showing addition alerts rules and conditions to a signal." lightbox="./media/how-to-monitor-with-azure-monitor/step-two-alerts-setting.png":::
80+
81+
## Sending diagnostic logs
7182

7283
Raw telemetry events are sent to Azure Monitor. Events can be sent to a Log Analytics Workspace, archived to a customer storage account of choice, streamed to an event hub, or sent to a partner solution for further analysis. Exporting of logs is done via the Diagnostic settings for the Microsoft Purview account on the Azure portal.
7384

7485
Follow these steps to create a diagnostic setting for your Microsoft Purview account and send to your preferred destination:
7586

7687
1. Locate your Microsoft Purview account in the [Azure portal](https://portal.azure.com).
77-
1. In the menu under **Monitoring** select **Diagnostic settings**.
78-
1. Select **Add diagnostic setting** to create a new diagnostic setting to collect platform logs and metrics. For more information about these settings and logs, see [the Azure Monitor documentation.](../azure-monitor/essentials/diagnostic-settings.md).
88+
2. In the menu under **Monitoring** select **Diagnostic settings**.
89+
3. Select **Add diagnostic setting** to create a new diagnostic setting to collect platform logs and metrics. For more information about these settings and logs, see [the Azure Monitor documentation.](../azure-monitor/essentials/diagnostic-settings.md).
7990

8091
:::image type="content" source="./media/how-to-monitor-with-azure-monitor/create-diagnostic-setting.png" alt-text="Screenshot showing creating diagnostic log." lightbox="./media/how-to-monitor-with-azure-monitor/create-diagnostic-setting.png":::
8192

82-
1. You can send your logs to:
93+
4. You can send your logs to:
8394

8495
- [A log analytics workspace](#destination---log-analytics-workspace)
8596
- [A storage account](#destination---storage-account)
97+
- [An event hub](#destination---event-hub)
8698

8799
### Destination - Log Analytics Workspace
88100

89101
1. In the **Destination details**, select **Send to Log Analytics workspace**.
90-
1. Create a name for the diagnostic setting, select the applicable log category group and select the right subscription and workspace, then select save. The workspace doesn't have to be in the same region as the resource being monitored. You to create a new workspace, you can follow this article: [Create a New Log Analytics Workspace](../azure-monitor/logs/quick-create-workspace.md).
102+
2. Create a name for the diagnostic setting, select the applicable log category group and select the right subscription and workspace, then select save. The workspace doesn't have to be in the same region as the resource being monitored. You to create a new workspace, you can follow this article: [Create a New Log Analytics Workspace](../azure-monitor/logs/quick-create-workspace.md).
91103

92104
:::image type="content" source="./media/how-to-monitor-with-azure-monitor/log-analytics-diagnostic-setting.png" alt-text="Screenshot showing assigning log analytics workspace to send event to." lightbox="./media/how-to-monitor-with-azure-monitor/log-analytics-diagnostic-setting.png":::
93105

94106
:::image type="content" source="./media/how-to-monitor-with-azure-monitor/log-analytics-select-workspace-diagnostic-setting.png" alt-text="Screenshot showing saved diagnostic log event to log analytics workspace." lightbox="./media/how-to-monitor-with-azure-monitor/log-analytics-select-workspace-diagnostic-setting.png":::
95107

96-
1. Verify the changes in your Log Analytics Workspace by performing some operations to populate data. For example, creating/updating/deleting a policy. After which you can open the **Log Analytics Workspace**, navigate to **Logs**, enter query filter as **"purviewsecuritylogs"**, then select **"Run"** to execute the query.
108+
3. Verify the changes in your Log Analytics Workspace by performing some operations to populate data. For example, creating/updating/deleting a policy. After which you can open the **Log Analytics Workspace**, navigate to **Logs**, enter query filter as **"purviewsecuritylogs"**, then select **"Run"** to execute the query.
97109

98110
:::image type="content" source="./media/how-to-monitor-with-azure-monitor/log-analytics-view-logs-diagnostic-setting.png" alt-text="Screenshot showing log results in the Log Analytics Workspace after a query was run." lightbox="./media/how-to-monitor-with-azure-monitor/log-analytics-view-logs-diagnostic-setting.png":::
99111

100112
### Destination - Storage account
101113

102114
1. In the **Destination details**, select **Archive to a storage account**.
103-
1. Create a diagnostic setting name, select the log category, select the destination as archive to a storage account, select the right subscription and storage account then select save. A dedicated storage account is recommended for archiving the diagnostic logs. If you need a storage account, you can follow this article: [Create a storage account](../storage/common/storage-account-create.md?tabs=azure-portal).
115+
2. Create a diagnostic setting name, select the log category, select the destination as archive to a storage account, select the right subscription and storage account then select save. A dedicated storage account is recommended for archiving the diagnostic logs. If you need a storage account, you can follow this article: [Create a storage account](../storage/common/storage-account-create.md?tabs=azure-portal).
104116

105117
:::image type="content" source="./media/how-to-monitor-with-azure-monitor/storage-diagnostic-setting.png" alt-text="Screenshot showing assigning storage account for diagnostic log." lightbox="./media/how-to-monitor-with-azure-monitor/storage-diagnostic-setting.png":::
106118

107119
:::image type="content" source="./media/how-to-monitor-with-azure-monitor/storage-select-diagnostic-setting.png" alt-text="Screenshot showing saved log events to storage account." lightbox="./media/how-to-monitor-with-azure-monitor/storage-select-diagnostic-setting.png":::
108120

109-
1. To see logs in the **Storage Account**, perform a sample action (for example: create/update/delete a policy), then open the **Storage Account**, navigate to **Containers**, and select the container name.
121+
3. To see logs in the **Storage Account**, perform a sample action (for example: create/update/delete a policy), then open the **Storage Account**, navigate to **Containers**, and select the container name.
110122

111123
:::image type="content" source="./media/how-to-monitor-with-azure-monitor/storage-two-diagnostic-setting.png" alt-text="Screenshot showing container in storage account where the diagnostic logs have been sent to." lightbox="./media/how-to-monitor-with-azure-monitor/storage-two-diagnostic-setting.png":::
112124

113-
1. Navigate to the file and download it to see the logs.
125+
4. Navigate to the file and download it to see the logs.
114126

115127
:::image type="content" source="./media/how-to-monitor-with-azure-monitor/storage-navigate-diagnostic-setting.png" alt-text="Screenshot showing folders with details of logs." lightbox="./media/how-to-monitor-with-azure-monitor/storage-navigate-diagnostic-setting.png":::
116128

117129
:::image type="content" source="./media/how-to-monitor-with-azure-monitor/storage-select-logs-diagnostic-setting.png" alt-text="Screenshot showing details of logs." lightbox="./media/how-to-monitor-with-azure-monitor/storage-select-logs-diagnostic-setting.png":::
118130

131+
### Destination - Event hub
132+
133+
1. In the **Destination details**, select **Stream to an event hub**.
134+
2. Create a diagnostic setting name, select the log category, select the destination as stream to event hub, select the right subscription, event hubs namespace, event hub name and event hub policy name then select save. An event hub name space is required before you can stream to an event hub. If you need to create an event hub namespace, you can follow this article: [Create an event hub & event hubs namespace storage account](../event-hubs/event-hubs-create.md)
135+
136+
:::image type="content" source="./media/how-to-monitor-with-azure-monitor/step-four-diagnostic-setting.png" alt-text="Screenshot showing streaming to an event hub for diagnostic log." lightbox="./media/how-to-monitor-with-azure-monitor/step-four-diagnostic-setting.png":::
137+
138+
:::image type="content" source="./media/how-to-monitor-with-azure-monitor/step-four-one-diagnostic-setting.png" alt-text="Screenshot showing saved log events to event hub." lightbox="./media/how-to-monitor-with-azure-monitor/step-four-one-diagnostic-setting.png":::
139+
140+
3. To see logs in the **Event Hubs Namespace**, Go to the [Azure portal](https://portal.azure.com), and search for the name of the event hubs namespace you created earlier, go the Event Hubs Namespace and click on overview. To find our more about capturing and reading captured audit events in the event hubs namespace, you can follow this article: [Audit Logs & diagnostics](../purview/tutorial-purview-audit-logs-diagnostics.md)
141+
142+
:::image type="content" source="./media/how-to-monitor-with-azure-monitor/step-four-one-diagnostic-setting.png" alt-text="Screenshot showing activities in the event hub." lightbox="./media/how-to-monitor-with-azure-monitor/step-four-one-diagnostic-setting.png":::
143+
119144
## Sample Log
120145

121146
Here's a sample log you'd receive from a diagnostic setting.
@@ -187,6 +212,6 @@ The Sample log for an event instance is shown in the below section.
187212
}
188213
```
189214

190-
## Next steps
215+
## Next steps
191216

192217
[Elastic data map in Microsoft Purview](concept-elastic-data-map.md)

0 commit comments

Comments
 (0)