Skip to content

Commit 44761bf

Browse files
Merge pull request #230332 from bwren/patch-54
Update tutorial-logs-ingestion-api.md
2 parents 89a1196 + 1be9dee commit 44761bf

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

articles/azure-monitor/logs/tutorial-logs-ingestion-api.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,14 @@ The [DCR](../essentials/data-collection-rule-overview.md) defines the schema of
262262
{
263263
"name": "AdditionalContext",
264264
"type": "string"
265+
},
266+
{
267+
"name": "CounterName",
268+
"type": "string"
269+
},
270+
{
271+
"name": "CounterValue",
272+
"type": "real"
265273
}
266274
]
267275
}
@@ -282,7 +290,7 @@ The [DCR](../essentials/data-collection-rule-overview.md) defines the schema of
282290
"destinations": [
283291
"clv2ws1"
284292
],
285-
"transformKql": "source | extend jsonContext = parse_json(AdditionalContext) | project TimeGenerated = Time, Computer, AdditionalContext = jsonContext, CounterName=tostring(jsonContext.CounterName), CounterValue=jsonContext.CounterValue",
293+
"transformKql": "source | extend jsonContext = parse_json(AdditionalContext) | project TimeGenerated = Time, Computer, AdditionalContext = jsonContext, CounterName=tostring(jsonContext.CounterName), CounterValue=toreal(jsonContext.CounterValue)",
286294
"outputStream": "Custom-MyTable_CL"
287295
}
288296
]

0 commit comments

Comments
 (0)