azure - 如何在 Azure Application Insights Analytics 上执行不同的操作,然后从新的不同集合中投影几个变量

标签 azure azure-application-insights

我有一个查询,要找出使用特定产品版本的不同用户 ID 及其所在国家/地区、机构名称、城市代码。 如何成功列出特性? 下面的查询没有过滤掉唯一用户。

自定义事件 |其中 customDimensions.["产品版本"] == "7.4" |其中时间戳之间(日期时间(“2018-12-01T00:00:00.000Z”)..日期时间(“2018-12-02T00:00:00.000Z”)) |项目 client_CountryOrRegion, user_Id, customDimensions.["机构名称"], customDimensions.["伪城市代码"], customDimensions.["产品版本"]

最佳答案

更新:

使用tostring()方法时请使用别名。然后在项目命令中,使用别名而不是列名。

查看我的测试结果如下:

enter image description here

<小时/>

在项目语法之前,请使用 summarize count() by client_CountryOrRegion, user_Id, customDimensions.["Agency Name"], customDimensions.["Pseudo City Code"], customDimensions.["Product Version"] ,然后使用project输出你喜欢的属性。

完成的代码如下:

customEvents
| where customDimensions.["Product Version"] == "7.4" 
| where timestamp between(datetime("2018-12-01T00:00:00.000Z")..datetime("2018-12-02T00:00:00.000Z")) 
| summarize count() by client_CountryOrRegion, user_Id, customDimensions.["Agency Name"], customDimensions.["Pseudo City Code"], customDimensions.["Product Version"]
| project client_CountryOrRegion, user_Id, customDimensions.["Agency Name"], customDimensions.["Pseudo City Code"], customDimensions.["Product Version"]

如果有任何问题,请告诉我。

关于azure - 如何在 Azure Application Insights Analytics 上执行不同的操作,然后从新的不同集合中投影几个变量,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54101883/

相关文章:

azure - 通过 Bicep 为 StaticWebApp 创建 AppInsights 实例

javascript - 为什么更新的 javascript 文件没有在已部署的网站上执行; azure 网站上的 asp MVC

c# - 获取 Azure DocumentDb 中的记录计数

powershell - 为虚拟机分配保留 IP

azure - 如何从 Powershell 脚本非交互地运行 Azure Log Analytics 查询?

c# - 拦截 Azure 函数主机关闭 : Flush Application Insights TelemetryClient

azure - azure webjob .Net Core 2.0 的应用程序见解

azure - 使用 Azure Front Door 时应用程序见解缺少 UserId 属性

asp.net - Azure 配置设置比 Web.Config 更安全?

azure - sysprep 后无法通过 RDP 连接到 Azure VM