如何在AppInsights中通过自定义属性prop_CorrelationId构建有效查询
Application Insights 自定义属性筛选查询无结果问题
核心疑问
是否可以在Application Insights查询的where子句中,使用自定义属性prop_CorrelationId完成日志筛选?
已尝试的查询
针对requests和traces两类内置数据集分别编写匹配条件,两次查询均未返回关联ID为568abba7-6601-4159-a3b1-ef27b2437473的目标日志:
- 针对
requests数据集的查询语句:let numberOfDaysAgo = ago(6d); requests | where timestamp > numberOfDaysAgo and customDimensions.prop_CorrelationId == "568abba7-6601-4159-a3b1-ef27b2437473" - 针对
traces数据集的查询语句:let numberOfDaysAgo = ago(6d); traces | where timestamp > numberOfDaysAgo and customDimensions.prop_CorrelationId == "568abba7-6601-4159-a3b1-ef27b2437473"
补充佐证
已通过日志详情页确认prop_CorrelationId为日志中实际存在的自定义属性,对应属性的展示形态可参考问题附带的自定义属性截图。
内容的提问来源于stack exchange,提问作者obautista
相关产品推荐
相关产品推荐

