小编Joh*_*ner的帖子

Application Insights 将列连接/组合成单个列

我有一个应用程序洞察查询。在这个查询中,我想将几​​列加入/组合成一列,以显示如何实现这一点。

我想结合ip,城市,州,国家。

customEvents
| where timestamp >= ago(7d)
| where (itemType == 'customEvent')
| where name == "Signin"
| project timestamp, customDimensions.appusername,   client_IP,client_City,client_StateOrProvince, client_CountryOrRegion 
| order by timestamp desc
Run Code Online (Sandbox Code Playgroud)

azure-application-insights ms-app-analytics

2
推荐指数
1
解决办法
2071
查看次数

Kusto 嵌套 json 为 null

我正在使用 Application Insights Log-Explorer 查询窗口来可视化以下查询。在字段内customDimensions.RemotePC我字符串一个 json 有效负载。

当我尝试通过属性索引对存储的 json 进行索引时,我得到的值为 null。我尝试将它作为数组访问,但该数组也变为空。

您能帮我访问下图中的 FirstName 属性吗?

在此输入图像描述

azure-application-insights kql azure-data-explorer

2
推荐指数
1
解决办法
789
查看次数

Application Insights Analytics执行子选择

我正在使用Application Insights的这个参考文档.

如何使用其他查询的输出进行子选择?

//Query 1
Events 
| where  Timestamp >= ago(30min) and Data contains('SomeString')
| project TraceToken

//I would like to use the first query's output in the subselect here.
Events 
| where TraceToken in ({I would like to use the First query's output here.})
Run Code Online (Sandbox Code Playgroud)

在这种情况下,联接是否更好.哪个会有更好的表现.

azure-application-insights ms-app-analytics

1
推荐指数
1
解决办法
2069
查看次数

可以在appinisghts中使用Row_number()或其他分析函数吗?

我有一个非常简单的问题,但我正在使用appInsights并且似乎无法弄清楚如何在aiql或任何函数中复制row_number()函数(没有分区感).

我有网页浏览表,我按会话和时间戳排序.我想在集合中添加一个rown_number列

pageViews | where timestamp > ago(14d) | order by session_id, timestamp desc
| extend rn =row_number() partition by session_id
Run Code Online (Sandbox Code Playgroud)

有没有人知道这是否可能在aiql中

azure azure-application-insights ms-app-analytics aiql

1
推荐指数
1
解决办法
320
查看次数