|
1 | 1 | ---
|
2 | 2 | title: Configure data retention for logs in Microsoft Sentinel or Azure Monitor
|
3 |
| -description: In this tutorial, you'll configure an archive policy for a table in a Log Analytics workspace. |
| 3 | +description: In this tutorial, you'll configure a data retention policy for a table in a Log Analytics workspace. |
4 | 4 | author: cwatson-cat
|
5 | 5 | ms.author: cwatson
|
6 | 6 | ms.service: microsoft-sentinel
|
@@ -36,47 +36,48 @@ To complete the steps in this tutorial, you must have the following resources an
|
36 | 36 |
|
37 | 37 | - Log Analytics workspace.
|
38 | 38 |
|
39 |
| -## Review interactive and long-term retention policies |
40 |
| - |
41 |
| -On the **Tables** page for the table you updated, review the field values for **Interactive retention** and **Total retention period**. The long-term retention (archive) period equals the total retention period in days minus the interactive retention in days. For example, you set the following values: |
42 |
| - |
43 |
| - | Field | Value | |
44 |
| - | ----- | ----- | |
45 |
| - | Interactive retention | 90 days | |
46 |
| - | Total retention period | 1.1 years | |
47 |
| - |
48 |
| -So the **Tables** page shows the following an archive period of 310 days. |
49 |
| - |
50 |
| -:::image type="content" source="media/configure-data-retention/data-retention-archive-period.png" alt-text="Screenshot of the table view that shows the interactive retention and archive period columns."::: |
51 |
| - |
52 | 39 | ## Set the retention policy for a table
|
53 | 40 |
|
54 |
| -In your Log Analytics workspace, clear the **Use default workspace settings** setting if you want to change the interactive retention period from its default of 90 days (for Microsoft Sentinel workspaces) or 31 days (for other workspaces). Then, change the total retention policy for a table like **SecurityAlert** to 3 years of data. The *total retention* period is the sum of the *interactive* and *auxiliary* (archive) retention periods. |
| 41 | +In your Log Analytics workspace, change the interactive retention policy of the **SecurityEvent** table from the workspace default of 90 days to 180 days, and the total retention policy to 3 years. The *total retention* period is the sum of the *interactive* and *long-term* (archive) retention periods. |
55 | 42 |
|
56 | 43 | 1. Sign in to the [Azure portal](https://portal.azure.com).
|
| 44 | + |
57 | 45 | 1. In the Azure portal, search for and open **Log Analytics workspaces**.
|
| 46 | + |
58 | 47 | 1. Select the appropriate workspace.
|
| 48 | + |
59 | 49 | 1. Under **Settings**, select **Tables**.
|
60 |
| -1. On a table like **SecurityAlert**, open the context menu (...). |
| 50 | + |
| 51 | +1. Find the **SecurityEvent** table in the list, and open the context menu (...). |
| 52 | + |
61 | 53 | 1. Select **Manage table**.
|
| 54 | + |
62 | 55 | :::image type="content" source="media/configure-data-retention/data-retention-tables.png" alt-text="Screenshot of the manage table option on the context menu for a table in the tables view.":::
|
63 |
| -1. Under **Data retention**, enter the following values. |
| 56 | + |
| 57 | +1. Under **Data retention settings**, enter the following values. |
64 | 58 |
|
65 | 59 | | Field | Value |
|
66 | 60 | | ----- | ----- |
|
67 |
| - | Use default workspace settings | Clear the checkbox | |
68 |
| - | Interactive retention | 120 days | |
| 61 | + | Interactive retention | 180 days | |
69 | 62 | | Total retention period | 3 years |
|
70 | 63 |
|
71 | 64 | :::image type="content" source="media/configure-data-retention/data-retention-settings.png" alt-text="Screenshot of the data retention settings that shows the changes to the fields under the data retention section.":::
|
72 | 65 |
|
| 66 | + See that the time graph shows that the long-term retention period equals the total retention period in days minus the interactive retention period in days. In this case, 915 days, or 2.5 years. |
| 67 | + |
73 | 68 | 1. Select **Save**.
|
74 | 69 |
|
| 70 | +## Review interactive and total retention policies |
| 71 | + |
| 72 | +On the **Tables** page for the table you updated, review the field values for **Interactive retention** and **Total retention**. |
| 73 | + |
| 74 | +:::image type="content" source="media/configure-data-retention/data-retention-archive-period.png" alt-text="Screenshot of the table view that shows the interactive retention and archive period columns."::: |
| 75 | + |
75 | 76 | ## Clean up resources
|
76 | 77 |
|
77 | 78 | No resources were created but you might want to restore the data retention settings you changed.
|
78 | 79 |
|
79 | 80 | ## Next steps
|
80 | 81 |
|
81 | 82 | > [!div class="nextstepaction"]
|
82 |
| -> [Configure data retention and archive policies in Azure Monitor Logs](../azure-monitor/logs/data-retention-archive.md?tabs=portal-1%2cportal-2) |
| 83 | +> [Configure interactive and long-term data retention policies in Azure Monitor Logs](../azure-monitor/logs/data-retention-archive.md?tabs=portal-1%2cportal-2) |
0 commit comments