Azure application insights Azure跨多个应用程序洞察进行查询,同时联合所有不同类型
当从特定的应用程序洞察Azure application insights Azure跨多个应用程序洞察进行查询,同时联合所有不同类型,azure-application-insights,azure-log-analytics,kql,Azure Application Insights,Azure Log Analytics,Kql,当从特定的应用程序洞察appInsights1进行查询时,在我从Azure Portal中选择应用程序洞察appInsights1后,我可以使用union*| where timestamp>ago(1h)查询最近1小时内所有不同类型的遥测数据。好极了 如果我想跨应用程序洞察查询appInsights1和appInsights2,我可以执行union*,app('appInsights2')。请求,app('appInsights2')。跟踪| where timestamp>ago(1h) 但
appInsights1
进行查询时,在我从Azure Portal中选择应用程序洞察appInsights1
后,我可以使用union*| where timestamp>ago(1h)
查询最近1小时内所有不同类型的遥测数据。好极了
如果我想跨应用程序洞察查询appInsights1
和appInsights2
,我可以执行union*,app('appInsights2')。请求,app('appInsights2')。跟踪| where timestamp>ago(1h)
但我真正想在这里实现的是像,
union*,app('appInsights2').*where timestamp>ago(1h)
,也可以从appInsights2
查询所有不同类型的遥测数据。但是MS不允许app('appInsights2').*
在这里。不知道为什么,即使是union*
也可以。无论如何,有没有一种方法可以做到这一点,而不是冗长乏味地列出所有类型,比如app('appInsights2')。请求,app('appInsights2')。跟踪,app('appInsights2')。异常,
我是Azure Monitor产品组的梅尔
我理解这种需求,但我们对“*”表的支持有限,尤其是在跨应用程序查询方面。这些查询在compute和IO中非常密集,远远超过指定表名的查询。当涉及多个应用程序/工作区时,这种情况会大大加剧
我们今天的建议是将您的所有应用程序见解汇集到一个或几个日志分析工作区中:
在这种模式下,工作区可能包含数十个甚至数百个表,但您不必跨应用程序合并
谢谢,
梅尔