Skip to content

Commit 1039b27

Browse files
Merge pull request #273743 from bwren/docs-editor/container-insights-transformat-1714421530
Update container-insights-transformations.md
2 parents 287203c + a2f948a commit 1039b27

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

articles/azure-monitor/containers/container-insights-transformations.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ The snippet below shows the `dataFlows` section for a single stream with a trans
5757
"destinations": [
5858
"ciworkspace"
5959
],
60-
"transformKql": "source | where Namespace == 'kube-system'"
60+
"transformKql": "source | where PodNamespace == 'kube-system'"
6161
}
6262
]
6363
```
@@ -68,7 +68,7 @@ The following samples show DCRs for Container insights using transformations. Us
6868

6969

7070
### Filter for a particular namespace
71-
This sample uses the log query `source | where Namespace == 'kube-system'` to collect data for a single namespace in `ContainerLogsV2`. You can replace `kube-system` in this query with another namespace or replace the `where` clause with another filter to match the particular data you want to collect. The other streams are grouped into a separate data flow and have no transformation applied.
71+
This sample uses the log query `source | where PodNamespace == 'kube-system'` to collect data for a single namespace in `ContainerLogsV2`. You can replace `kube-system` in this query with another namespace or replace the `where` clause with another filter to match the particular data you want to collect. The other streams are grouped into a separate data flow and have no transformation applied.
7272

7373

7474
```json
@@ -101,8 +101,7 @@ This sample uses the log query `source | where Namespace == 'kube-system'` to co
101101
"destinations": {
102102
"logAnalytics": [
103103
{
104-
"workspaceResourceId": "",
105-
"workspaceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/my-resource-group/providers/microsoft.operationalinsights/workspaces/my-workspace",
104+
"workspaceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/my-resource-group/providers/microsoft.operationalinsights/workspaces/my-workspace",
106105
"name": "ciworkspace"
107106
}
108107
]
@@ -132,7 +131,7 @@ This sample uses the log query `source | where Namespace == 'kube-system'` to co
132131
"destinations": [
133132
"ciworkspace"
134133
],
135-
"transformKql": "source | where Namespace == 'kube-system'"
134+
"transformKql": "source | where PodNamespace == 'kube-system'"
136135
}
137136
]
138137
}
@@ -174,8 +173,7 @@ This sample uses the log query `source | extend new_CF = ContainerName` to send
174173
"destinations": {
175174
"logAnalytics": [
176175
{
177-
"workspaceResourceId": "",
178-
"workspaceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/my-resource-group/providers/microsoft.operationalinsights/workspaces/my-workspace",
176+
"workspaceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/my-resource-group/providers/microsoft.operationalinsights/workspaces/my-workspace",
179177
"name": "ciworkspace"
180178
}
181179
]

0 commit comments

Comments
 (0)