You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何编写带过滤条件的KQL联合查询:关联exceptions与筛选后的requests表

KQL联合查询添加单表过滤条件

你需要先对requests表单独应用过滤条件,再和exceptions表执行联合查询,具体写法如下:

exceptions
| union (requests
         | where name contains "health" and success == false)

说明:

  • 用括号包裹requests表的过滤逻辑,确保过滤条件仅作用于requests表,不会影响exceptions表的数据
  • contains操作符用于匹配name字段中包含"health"的记录
  • 过滤后的requests结果集将和exceptions表的所有数据合并,得到最终的联合查询结果

内容的提问来源于stack exchange,提问作者Giuseppe

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.08.16 13:10:51