|
| 1 | +--- |
| 2 | +title: Azure activity log insights |
| 3 | +description: Learn how to monitor changes to resources and resource groups in an Azure subscription with Azure Monitor activity log insights. |
| 4 | +author: guywi-ms |
| 5 | +services: azure-monitor |
| 6 | +ms.topic: how-to |
| 7 | +ms.date: 08/24/2022 |
| 8 | +ms.author: guywild |
| 9 | +ms.reviewer: orens |
| 10 | + |
| 11 | +#customer-intent: As an IT manager, I want to understand how I can use activity log insights to monitor changes to resources and resource groups in an Azure subscription. |
| 12 | +--- |
| 13 | + |
| 14 | +# Monitor changes to resources and resource groups with Azure Monitor activity log insights |
| 15 | + |
| 16 | +Activity log insights provide you with a set of dashboards that monitor the changes to resources and resource groups in a subscription. The dashboards also present data about which users or services performed activities in the subscription and the activities' status. This article explains how to onboard and view activity log insights in the Azure portal. |
| 17 | + |
| 18 | +Before you use activity log insights, you must [enable sending logs to your Log Analytics workspace](./diagnostic-settings.md). |
| 19 | + |
| 20 | +## How do activity log insights work? |
| 21 | + |
| 22 | +Azure Monitor stores all activity logs you send to a [Log Analytics workspace](../logs/log-analytics-workspace-overview.md) in a table called `AzureActivity`. |
| 23 | + |
| 24 | +Activity log insights are a curated [Log Analytics workbook](../visualize/workbooks-overview.md) with dashboards that visualize the data in the `AzureActivity` table. For example, data might include which administrators deleted, updated, or created resources and whether the activities failed or succeeded. |
| 25 | + |
| 26 | +:::image type="content" source="media/activity-log/activity-logs-insights-main-screen.png" lightbox= "media/activity-log/activity-logs-insights-main-screen.png" alt-text="Screenshot that shows activity log insights dashboards."::: |
| 27 | + |
| 28 | +## View resource group or subscription-level activity log insights |
| 29 | + |
| 30 | +To view activity log insights at the resource group or subscription level: |
| 31 | + |
| 32 | +1. In the Azure portal, select **Monitor** > **Workbooks**. |
| 33 | +1. In the **Insights** section, select **Activity Logs Insights**. |
| 34 | + |
| 35 | + :::image type="content" source="media/activity-log/open-activity-log-insights-workbook.png" lightbox= "media/activity-log/open-activity-log-insights-workbook.png" alt-text="Screenshot that shows how to locate and open the Activity Logs Insights workbook on a scale level."::: |
| 36 | + |
| 37 | +1. At the top of the **Activity Logs Insights** page, select: |
| 38 | + |
| 39 | + 1. One or more subscriptions from the **Subscriptions** dropdown. |
| 40 | + 1. Resources and resource groups from the **CurrentResource** dropdown. |
| 41 | + 1. A time range for which to view data from the **TimeRange** dropdown. |
| 42 | + |
| 43 | +## View resource-level activity log insights |
| 44 | + |
| 45 | +>[!Note] |
| 46 | +> Activity log insights does not currently support Application Insights resources. |
| 47 | +
|
| 48 | +To view activity log insights at the resource level: |
| 49 | + |
| 50 | +1. In the Azure portal, go to your resource and select **Workbooks**. |
| 51 | +1. In the **Activity Logs Insights** section, select **Activity Logs Insights**. |
| 52 | + |
| 53 | + :::image type="content" source="media/activity-log/activity-log-resource-level.png" lightbox= "media/activity-log/activity-log-resource-level.png" alt-text="Screenshot that shows how to locate and open the Activity Logs Insights workbook on a resource level."::: |
| 54 | + |
| 55 | +1. At the top of the **Activity Logs Insights** page, select a time range for which to view data from the **TimeRange** dropdown: |
| 56 | + |
| 57 | + * **Azure Activity Log Entries** shows the count of activity log records in each activity log category. |
| 58 | + |
| 59 | + :::image type="content" source="media/activity-log/activity-logs-insights-category-value.png" lightbox= "media/activity-log/activity-logs-insights-category-value.png" alt-text="Screenshot that shows Azure activity logs by category value."::: |
| 60 | + |
| 61 | + * **Activity Logs by Status** shows the count of activity log records in each status. |
| 62 | + |
| 63 | + :::image type="content" source="media/activity-log/activity-logs-insights-status.png" lightbox= "media/activity-log/activity-logs-insights-status.png" alt-text="Screenshot that shows Azure activity logs by status."::: |
| 64 | + |
| 65 | + * At the subscription and resource group level, **Activity Logs by Resource** and **Activity Logs by Resource Provider** show the count of activity log records for each resource and resource provider. |
| 66 | + |
| 67 | + :::image type="content" source="media/activity-log/activity-logs-insights-resource.png" lightbox= "media/activity-log/activity-logs-insights-resource.png" alt-text="Screenshot that shows Azure activity logs by resource."::: |
| 68 | + |
| 69 | +## Next steps |
| 70 | + |
| 71 | +Learn more about: |
| 72 | + |
| 73 | +* [Activity logs](./activity-log.md) |
| 74 | +* [The activity log event schema](activity-log-schema.md) |
| 75 | + |
0 commit comments