Skip to content

Commit 5bd8d70

Browse files
Merge pull request #283685 from EdB-MSFT/fix-send-activity-log
Fix send activity log
2 parents 8939c75 + 2f52be8 commit 5bd8d70

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

articles/azure-monitor/essentials/activity-log.md

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,17 @@ ms.reviewer: orens
1313

1414
The Azure Monitor Activity Log is a platform log that provides insight into subscription-level events. The Activity Log includes information like when a resource is modified or a virtual machine is started. You can view the Activity Log in the Azure portal or retrieve entries with PowerShell and the Azure CLI. This article provides information on how to view the Activity Log and send it to different destinations.
1515

16-
For more functionality, create a diagnostic setting to send the Activity Log to one or more of these locations for the following reasons:
16+
Create a diagnostic setting to send the Activity Log to one or more of these locations:
17+
- [Log Analytics workspace](#send-to-log-analytics-workspace) for more complex querying and alerting
18+
- [Azure Event Hubs](#send-to-azure-event-hubs) to forwarding logs outside of Azure.
19+
- [Azure Storage](#send-to-azure-storage) for cheaper, long-term archiving.
1720

18-
- Send to [Azure Monitor Logs](../logs/data-platform-logs.md) for more complex querying and alerting and for [longer retention of up to 12 years](../logs/data-retention-configure.md).
19-
- Send to Azure Event Hubs to forward outside of Azure.
20-
- Send to Azure Storage for cheaper, long-term archiving.
2121

2222
For details on how to create a diagnostic setting, see [Create diagnostic settings to send platform logs and metrics to different destinations](./diagnostic-settings.md).
2323
> [!TIP]
24-
> * Sending logs to Log Analytics workspace if free of charge for the default retention period.
25-
> * Send to Azure Monitor Logs for more complex querying and alerting and for longer retention of up to 12 years.
24+
> Send Activity Logs to a Log Analytics workspace for the following benefits:
25+
> * Sending logs to a Log Analytics workspace is free of charge for the default retention period.
26+
> * Send logs to a Log Analytics workspace for [longer retention of up to 12 years](../logs/data-retention-configure.md).
2627
> * Logs exported to a Log Analytics workspace can be [shown in Power BI](/power-bi/transform-model/log-analytics/desktop-log-analytics-overview)
2728
> * [Insights](./activity-log-insights.md) are provided for Activity Logs exported to Log Analytics.
2829
@@ -248,12 +249,12 @@ If a log profile already exists, you first must remove the existing log profile,
248249
```
249250
| Property | Required | Description |
250251
| --- | --- | --- |
251-
| name |Yes |Name of your log profile. |
252-
| storage-account-id |Yes |Resource ID of the storage account to which activity logs should be saved. |
253-
| locations |Yes |Space-separated list of regions for which you want to collect activity log events. View a list of all regions for your subscription by using `az account list-locations --query [].name`. |
254-
| days |Yes |Number of days for which events should be retained, from 1 through 365. A value of zero stores the logs indefinitely (forever). If zero, then the enabled parameter should be set to False. |
255-
|enabled | Yes |True or False. Used to enable or disable the retention policy. If True, then the `days` parameter must be a value greater than zero.
256-
| categories |Yes |Space-separated list of event categories that should be collected. Possible values are Write, Delete, and Action. |
252+
| `name` |Yes |Name of your log profile. |
253+
| `storage-account-id` |Yes |Resource ID of the storage account to which activity logs should be saved. |
254+
| `locations` |Yes |Space-separated list of regions for which you want to collect activity log events. View a list of all regions for your subscription by using `az account list-locations --query [].name`. |
255+
| `days` |Yes |Number of days for which events should be retained, from 1 through 365. A value of zero stores the logs indefinitely (forever). If zero, then the enabled parameter should be set to False. |
256+
|`enabled` | Yes |True or False. Used to enable or disable the retention policy. If True, then the `days` parameter must be a value greater than zero.
257+
| `categories` |Yes |Space-separated list of event categories that should be collected. Possible values are Write, Delete, and Action. |
257258

258259

259260
---
@@ -262,7 +263,7 @@ If a log profile already exists, you first must remove the existing log profile,
262263

263264
The Export activity logs experience sends the same data as the legacy method used to send the activity log with some changes to the structure of the `AzureActivity` table.
264265

265-
The columns in the following table have been deprecated in the updated schema. They still exist in `AzureActivity`, but they have no data. The replacements for these columns aren't new, but they contain the same data as the deprecated column. They're in a different format, so you might need to modify log queries that use them.
266+
The columns in the following table are deprecated in the updated schema. They still exist in `AzureActivity`, but they have no data. The replacements for these columns aren't new, but they contain the same data as the deprecated column. They're in a different format, so you might need to modify log queries that use them.
266267

267268
|Activity log JSON | Log Analytics column name<br/>*(older deprecated)* | New Log Analytics column name | Notes |
268269
|:---------|:---------|:---------|:---------|

0 commit comments

Comments
 (0)