azure - 应用程序见解 kusto 查询列出所有子项目

标签 azure azure-application-insights azure-data-explorer kql

我有想要查询的应用程序见解结果。我在应用程序洞察中的数据是带有子依赖项的请求。它们具有相同的操作_Id。 我想列出所有请求。我可以通过运行查询轻松地做到这一点:request 但我也希望在同一行中具有相同的相应依赖项。就像一个列表一样。如何使用 make_list() 运算符执行此操作?

或者,我可以通过连接来完成此操作。但我更喜欢将结果放在同一行中,并将依赖项名称放在列表中作为列。

最佳答案

试试这个?

requests
| join (dependencies
    | summarize operationNameList=make_list(name),opid=count() by operation_Id
    | project operationNameList, operation_Id
    )
    on operation_Id
| project id, name, operationNameList

我的想法是,当使用“join”时,我们可以根据依赖项计数得到几行。因此使用make_list来合并依赖。

enter image description here

关于azure - 应用程序见解 kusto 查询列出所有子项目,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67730093/

相关文章:

asp.net - 我可以使用Environment.GetEnvironmentVariable方法从Azure应用程序设置中读取环境变量吗?

azure - 如何使用 terraform 创建 azure 事件网格系统主题?

azure - 读取 Azure 数据工厂 DataFlow 中的嵌套数组

azure - 查询 Azure Log Analytics 中的多个表

sql-server - Kubernetes SQL Server 或 Azure SQL Server PaaS

azure - 从 Azure VM 中删除首选 DNS

c# - 为什么 Application Insights TrackException 不记录任何内容?

.net - 如何在 Application Insights 中禁用标准性能计数器?

c# - Application insights 读取响应正文

azure - 将查询结果作为参数传递给函数 Kusto