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

如何编写可筛选多个Function App的Azure Kusto日志查询

多Function App日志筛选Kusto查询方案

你可以使用Kusto的in运算符实现指定多个Function App的过滤需求,FunctionAppLogs表内的AppName字段对应Function App的名称,将你需要查询的目标Function App名称放入in后的括号列表中即可,修改后的参考查询如下:

FunctionAppLogs 
| where AppName in ("目标FunctionApp名称1", "目标FunctionApp名称2", "目标FunctionApp名称3")
| where FunctionName == "TestFunction" 
| project Category, Level, Message

可选拓展用法

  • 若需要模糊匹配一批名称有共同特征的Function App,可以使用has_any运算符,示例语句为| where AppName has_any ("prod", "business"),会匹配所有名称包含括号内任意关键词的Function App
  • 上述字符串匹配默认不区分大小写,有严格大小写匹配需求的场景可以替换为大小写敏感版本的运算符:in_cs、has_any_cs

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.10.05 19:36:02