我正在尝试编写一个查询来从 Azure Application Insight 中获取一些数据,我想要做的是该日志中有一个字段,我想将其扩展为单独的列,但在尝试时使用导出的列运行查询会出现语法错误。
Column Name: Request Duration (milliseconds)
查询:
customEvents
| extend Request_Duration_(milliseconds)_ = tostring(parse_json(tostring(customDimensions.Properties)).["Request Duration (milliseconds)"])
最佳答案
您的查询存在一些错误,请尝试以下代码:
customEvents
| where name == "e2"
| extend Request_Duration_milliseconds = parse_json(tostring(customDimensions.Properties)).["Request Duration (milliseconds)"]
| project customDimensions, Request_Duration_milliseconds
测试结果:
关于azure - 如何扩展 Azure App Insight 日志查询中列名称中包含空格和括号的列?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61751193/