You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-monitor/logs/logs-table-plans.md
+69-54Lines changed: 69 additions & 54 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,10 +14,10 @@ ms.date: 07/04/2024
14
14
15
15
You can use one Log Analytics workspace to store any type of log required for any purpose. For example:
16
16
17
-
- High-volume, verbose data that requires **cheap long-term storage for audit and compliance**
18
-
- App and resource data for **troubleshooting** by developers
19
-
- Key event and performance data for scaling and alerting to ensure ongoing **operational excellence and security**
20
-
- Aggregated long-term data trends for **advanced analytics and machine learning**
17
+
* High-volume, verbose data that requires **cheap long-term storage for audit and compliance**
18
+
* App and resource data for **troubleshooting** by developers
19
+
* Key event and performance data for scaling and alerting to ensure ongoing **operational excellence and security**
20
+
* Aggregated long-term data trends for **advanced analytics and machine learning**
21
21
22
22
Table plans let you manage data costs based on how often you use the data in a table and the type of analysis you need the data for. This article explains and how to set a table's plan.
23
23
@@ -39,8 +39,9 @@ All tables support the Analytics plan and all DCR-based custom tables and [some
39
39
When you change a table's plan from Analytics to Basic, Azure monitor treats any data that's older than 30 days as long-term retention data based on the total retention period set for the table. In other words, the total retention period of the table remains unchanged, unless you explicitly [modify the long-term retention period](../logs/data-retention-configure.md).
40
40
41
41
> [!NOTE]
42
-
> You can switch a table's plan once a week.
43
-
# [Portal](#tab/portal-1)
42
+
> You can switch a table's plan once a week.
43
+
44
+
### [Portal](#tab/portal-1)
44
45
45
46
Analytics is the default table plan of all tables you create in the portal. You can switch between the Analytics and Basic plans, as described in this section.
46
47
@@ -62,24 +63,24 @@ To switch a table's plan in the Azure portal:
62
63
63
64
1. Select **Save**.
64
65
65
-
# [API](#tab/api-1)
66
+
###[API](#tab/api-1)
66
67
67
68
To configure a table for Basic logs or Analytics logs, call the [Tables - Update API](/rest/api/loganalytics/tables/create-or-update):
> Use the bearer token for authentication. Learn more about [using bearer tokens](https://social.technet.microsoft.com/wiki/contents/articles/51140.azure-rest-management-api-the-quickest-way-to-get-your-bearer-token.aspx).
75
-
76
74
**Request body**
77
75
78
-
|Name | Type | Description |
79
-
| --- | --- | --- |
80
-
|properties.plan | string | The table plan. Possible values are `Analytics` and `Basic`.|
| properties.plan | string | The table plan. Possible values are `Analytics` and `Basic`. |
79
+
80
+
> [!IMPORTANT]
81
+
> Use the bearer token for authentication. Learn more about [using bearer tokens](https://social.technet.microsoft.com/wiki/contents/articles/51140.azure-rest-management-api-the-quickest-way-to-get-your-bearer-token.aspx).
81
82
82
-
**Example**
83
+
#### Example
83
84
84
85
This example configures the `ContainerLogV2` table for Basic logs.
85
86
@@ -91,77 +92,91 @@ Container Insights uses `ContainerLog` by default. To switch to using `Container
To configure a table for Basic logs or Analytics logs, run the [az monitor log-analytics workspace table update](/cli/azure/monitor/log-analytics/workspace/table#az-monitor-log-analytics-workspace-table-update) command and set the `--plan` parameter to `Basic` or `Analytics`.
To configure a table's plan, use the [Update-AzOperationalInsightsTable](/powershell/module/az.operationalinsights/Update-AzOperationalInsightsTable) cmdlet:
0 commit comments