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/cosmos-db/logs-transformations.md
+12-10Lines changed: 12 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,32 +3,35 @@ title: 'Tutorial: Add a workspace transformation to Cosmos DB Azure Monitor Logs
3
3
description: Describes how to add a custom transformation to data flowing through Azure Monitor Logs by using the Azure portal.
4
4
ms.topic: tutorial
5
5
ms.date: 03/17/2023
6
+
author: StefArroyo
7
+
ms.author: esarroyo
8
+
ms.service: Azure Cosmos DB
6
9
---
7
10
# Cost Optimizations for Log Analytics Workbooks
8
11
To help improve costs for enabling Log Analytics, we now support adding Data Collection Rules and transformations on your Log Analytics resources to filter out columns, reduce number of results returned, and create new columns before the data is sent to the destination.
9
12
10
13
11
14
## Tutorial: Add a transformation in a workspace data collection rule by using the Azure portal
12
-
This tutorial walks you through configuration of a sample [transformation in a workspace data collection rule (DCR)](../essentials/data-collection-transformations.md) by using the Azure portal.
15
+
This tutorial walks you through configuration of a sample [transformation in a workspace data collection rule (DCR)](../articles/azure-monitor/essentials/data-collection-transformations.md) by using the Azure portal.
13
16
14
-
Workspace transformations are stored together in a single [DCR](../essentials/data-collection-rule-overview.md) for the workspace, which is called the workspace DCR. Each transformation is associated with a particular table. The transformation will be applied to all data sent to this table from any workflow not using a DCR.
17
+
Workspace transformations are stored together in a single [DCR](../articles/azure-monitor/essentials/data-collection-rule-overview.md) for the workspace, which is called the workspace DCR. Each transformation is associated with a particular table. The transformation will be applied to all data sent to this table from any workflow not using a DCR.
15
18
16
19
> [!NOTE]
17
20
> This tutorial uses the Azure portal to configure a workspace transformation. For the same tutorial using Azure Resource Manager templates and REST API, see [Tutorial: Add transformation in workspace data collection rule to Azure Monitor using resource manager templates](tutorial-workspace-transformations-api.md).
18
21
19
22
In this tutorial, you learn how to:
20
23
21
24
> [!div class="checklist"]
22
-
> * Configure a [workspace transformation](../essentials/data-collection-transformations.md#workspace-transformation-dcr) for a table in a Log Analytics workspace.
25
+
> * Configure a [workspace transformation](../articles/azure-monitor/essentials/data-collection-transformations.md#workspace-transformation-dcr) for a table in a Log Analytics workspace.
23
26
> * Write a log query for a workspace transformation.
24
27
25
28
## Prerequisites
26
29
To complete this tutorial, you need:
27
30
28
-
- A Log Analytics workspace where you have at least [contributor rights](manage-access.md#azure-rbac).
29
-
-[Permissions to create DCR objects](../essentials/data-collection-rule-overview.md#permissions) in the workspace.
31
+
- A Log Analytics workspace where you have at least [contributor rights](../articles/azure-monitor/logs/manage-access.md#azure-rbac).
32
+
-[Permissions to create DCR objects](../articles/azure-monitor/data-collection-rule-overview.md#permissions) in the workspace.
30
33
- A table that already has some data.
31
-
- The table can't be linked to the [workspace transformation DCR](../essentials/data-collection-transformations.md#workspace-transformation-dcr).
34
+
- The table can't be linked to the [workspace transformation DCR](../articles/azure-monitor/essentials/data-collection-transformations.md#workspace-transformation-dcr).
32
35
33
36
## Overview of the tutorial
34
37
In this tutorial, you'll reduce the storage requirement for the `CDBDataPlaneRequests` table by filtering out certain records. You'll also remove the contents of a column while parsing the column data to store a piece of data in a custom column. The [CDBDataPlaneRequests table](monitor-resource-logs.md) is created when you enable [log analytics](monitor-resource-logs.md) in a workspace.
@@ -49,7 +52,7 @@ Now that the table's created, you can create the transformation for it.
49
52
50
53
:::image type="content" source="media/tutorial-workspace-transformations-portal/create-transformation.png" lightbox="media/tutorial-workspace-transformations-portal/create-transformation.png" alt-text="Screenshot that shows creating a new transformation.":::
51
54
52
-
2. Because this transformation is the first one in the workspace, you must create a [workspace transformation DCR](../essentials/data-collection-transformations.md#workspace-transformation-dcr). If you create transformations for other tables in the same workspace, they'll be stored in this same DCR. Select **Create a new data collection rule**. The **Subscription** and **Resource group** will already be populated for the workspace. Enter a name for the DCR and select **Done**.
55
+
2. Because this transformation is the first one in the workspace, you must create a [workspace transformation DCR](../articles/azure-monitor/essentials/data-collection-transformations.md#workspace-transformation-dcr). If you create transformations for other tables in the same workspace, they'll be stored in this same DCR. Select **Create a new data collection rule**. The **Subscription** and **Resource group** will already be populated for the workspace. Enter a name for the DCR and select **Done**.
53
56
54
57
:::image type="content" source="media/tutorial-workspace-transformations-portal/new-data-collection-rule.png" lightbox="media/tutorial-workspace-transformations-portal/new-data-collection-rule.png" alt-text="Screenshot that shows creating a new data collection rule.":::
55
58
@@ -102,6 +105,5 @@ A known issue currently affects dynamic columns. A temporary workaround is to ex
102
105
103
106
## Next steps
104
107
105
-
- [Read more about transformations](../essentials/data-collection-transformations.md)
106
-
- [See which tables support workspace transformations](tables-feature-support.md)
107
-
- [Learn more about writing transformation queries](../essentials/data-collection-transformations-structure.md)
108
+
- [Read more about transformations](../articles/azure-monitor/essentials/data-collection-transformations.md)
109
+
- [Learn more about writing transformation queries](../articles/azure-monitor/essentials/data-collection-transformations-structure.md)
0 commit comments