如何从Kusto.Explorer查询我的Application Insights日志(分析)?

Kon*_*zik 4 azure azure-application-insights azure-log-analytics kusto azure-data-explorer

在Azure门户的“我的应用程序见解/日志”视图中,我可以这样查询应用程序数据:

app('my-app-name').traces

app功能在Azure Monitor query中的app()表达式文章中进行了描述。

Kusto.Explorer不了解该app()功能,这似乎是因为它是Azure Monitor中的“ 其他”运算符之一而引起的。

如何使用Kusto.Explorer查询我的App Insights /日志?我不能使用cluster它,因为它是Azure Monitor不支持功能之一。

Sha*_*tin 13

步骤 1 连接字符串

从此模板构建连接字符串:

https://ade.applicationinsights.io/subscriptions/<subscription-id>/resourcegroups/<resource-group-name>/providers/microsoft.insights/components/<ai-app-name>

填写门户中的订阅 ID、资源组名称和 ai-app-name。这是一个示例图像

在此输入图像描述

步骤 2 添加与 Kusto.Explorer 的连接

打开Kusto.Explorer,选择Add Connection,然后将连接字符串粘贴到Cluster connection字段中。

在此输入图像描述

确定后,Windows 将提示您使用 Azure Active Directory 帐户登录。经过身份验证后,Kusto.Explorer 将在“连接”面板中显示 Application Insights 表。


小智 8

我们具有Azure数据资源管理器(ADX)代理的专用预览,使您可以将Log Analytics / Application Insights视为虚拟群集,使用ADX工具对其进行查询,并将其作为跨群集查询中的第二个群集进行连接。由于它是私人预览,因此您需要联系adxproxy@microsoft.com进行注册。代理记录在https://docs.microsoft.com/zh-cn/azure/data-explorer/query-monitor-data中

(免责声明-我是负责此项目的项目经理)。