You need to enable JavaScript to run this app. 如何在AppInsights中通过自定义属性prop_CorrelationId构建有效查询
优惠活动
大模型
产品
解决方案
定价
更多

如何在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

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.11.18 18:36:07