Skip to content

Commit 7f0755e

Browse files
Merge pull request #261242 from DaleKoetke/docs-editor/data-retention-archive-1702570797
Update data-retention-archive.md
2 parents e528fc4 + 3b78abb commit 7f0755e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

articles/azure-monitor/logs/data-retention-archive.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ You can access archived data by [running a search job](search-jobs.md) or [resto
3030

3131
> [!NOTE]
3232
> The archive period can only be set at the table level, not at the workspace level.
33+
3334
### Adjustments to retention and archive settings
3435

3536
When you shorten an existing retention setting, Azure Monitor waits 30 days before removing the data, so you can revert the change and avoid data loss in the event of an error in configuration. You can [purge data](#purge-retained-data) immediately when required.
@@ -183,6 +184,7 @@ For example:
183184
Update-AzOperationalInsightsTable -ResourceGroupName ContosoRG -WorkspaceName ContosoWorkspace -TableName Syslog -RetentionInDays -1 -TotalRetentionInDays -1
184185
```
185186

187+
186188
---
187189

188190
## Get retention and archive settings by table
@@ -196,6 +198,7 @@ The **Tables** screen shows the interactive retention and archive period for all
196198
:::image type="content" source="media/data-retention-configure/log-analytics-view-table-retention-archive.png" lightbox="media/data-retention-configure/log-analytics-view-table-retention-archive.png" alt-text="Screenshot that shows the Manage table button for one of the tables in a workspace.":::
197199

198200

201+
199202
# [API](#tab/api-2)
200203

201204
To get the retention setting of a particular table (in this example, `SecurityEvent`), call the **Tables - Get** API:
@@ -232,6 +235,7 @@ For example:
232235
Get-AzOperationalInsightsTable -ResourceGroupName ContosoRG -WorkspaceName ContosoWorkspace -tableName SecurityEvent
233236
```
234237

238+
235239
---
236240

237241
## Purge retained data
@@ -242,7 +246,8 @@ Workspaces with a 30-day retention might keep data for 31 days if you don't set
242246

243247
You can also purge data from a workspace by using the [purge feature](personal-data-mgmt.md#exporting-and-deleting-personal-data), which removes personal data. You can't purge data from archived logs.
244248

245-
The Log Analytics [Purge API](/rest/api/loganalytics/workspacepurge/purge) doesn't affect retention billing. To lower retention costs, *decrease the retention period for the workspace or for specific tables*.
249+
> [!IMPORTANT]
250+
> The Log Analytics [Purge feature](/rest/api/loganalytics/workspacepurge/purge) doesn't affect your retention costs. To lower retention costs, decrease the retention period for the workspace or for specific tables.
246251
247252
## Tables with unique retention periods
248253

0 commit comments

Comments
 (0)