如何从Kusto.Explorer中查询我的应用程序洞察日志(分析)? [英] How to query my Application Insights Logs (Analytics) from Kusto.Explorer?
本文介绍了如何从Kusto.Explorer中查询我的应用程序洞察日志(分析)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
更新2021年7月13日
下面使用的链接现在已部分过时。这是new section on language differences。原始帖子
在Azure门户上,在我的App Insights/Logs视图中,我可以这样查询应用程序数据:
app('my-app-name').traces
app() expression in Azure Monitor query一文中介绍了app
功能。
Kusto.Explorer不理解app()
函数,这似乎是因为它是Additional operators in Azure Monitor函数之一。
如何使用Kusto.Explorer查询我的App Insights/日志?我无法使用cluster
,因为它是functions not supported in Azure Monitor之一。
相关单据:Azure Monitor log query language differences
关于疑难解答联接的说明
(新增2021年12月16日)
来自Kusto Team的Pro-Tip: 如果您正在从Kusto.Explorer查询应用程序洞察,而加入普通集群失败,并出现网关错误或其他意外错误,请考虑将hint.remote=left
添加到join
中。点赞:
tableFromApplicationInsights
| join kind=innerunique hint.remote=left tableFromNormalKustoCluster
推荐答案
第一步连接字符串
从此模板生成连接字符串:
https://ade.applicationinsights.io/subscriptions/<subscription-id>/resourcegroups/<resource-group-name>/providers/microsoft.insights/components/<ai-app-name>
第2步将连接添加到Kusto.Explorer
打开Kusto.Explorer,选择Add Connection
,然后将连接字符串粘贴到Cluster connection
字段中。
这篇关于如何从Kusto.Explorer中查询我的应用程序洞察日志(分析)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文