【问题标题】:How to query my Application Insights Logs (Analytics) from Kusto.Explorer?如何从 Kusto.Explorer 查询我的 Application Insights 日志(分析)?
【发布时间】:2019-10-25 05:30:58
【问题描述】:

2021 年 7 月 13 日更新

下面使用的链接现已部分过时。这是new section on language differences

原帖

在 Azure 门户上,在我的 App Insights / Logs 视图中,我可以像这样查询应用数据:

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

app 函数在文章app() expression in Azure Monitor query 中有描述。

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 团队的专业提示: 如果您从 Kusto.Explorer 查询应用程序洞察,并且您与正常集群的连接因网关错误或其他意外错误而失败,请考虑将 hint.remote=left 添加到您的 join。喜欢:

tableFromApplicationInsights
| join kind=innerunique hint.remote=left tableFromNormalKustoCluster

【问题讨论】:

    标签: azure azure-application-insights azure-data-explorer azure-log-analytics kql


    【解决方案1】:

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

    (免责声明 - 我是推动这个项目的 PM)。

    【讨论】:

    • 提醒您,在回答有关您自己的产品或服务的问题时,您需要在回答中使用disclose your affiliation
    • 太好了!我将无法注册私人预览版,因为时间框架都错了(我现在在一个客户网站上,今天就想要这个)。我很想拥有这个,很高兴你正在努力。 :)
    • 嗨 - 现在已经启动并运行。请直接联系 adxproxy@microsoft.com 了解更多信息。
    【解决方案2】:

    第一步连接字符串

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

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

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

    第 2 步添加到 Kusto.Explorer 的连接

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

    安装 OK 后,Windows 将提示您使用您的 Azure Active Directory 帐户登录。完成身份验证后,Kusto.Explorer 将在 Connections 面板中显示 Application Insights 表。

    【讨论】:

    • 我在尝试连接时收到 401 未经授权的错误是什么意思?
    猜你喜欢
    • 1970-01-01
    • 2022-01-12
    • 2020-02-25
    • 2022-12-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多