has_any 具有 > 10K 值

问题描述

我们遇到了 Kusto has_any 10K 的限制。 示例代码

public class CustomTask extends DefaultTask{
    
@TaskAction 
public void runcustomTask{
    CustomJar.callCustomMethod();
}

有没有办法通过连接重构查询? 或者,是否可以批量循环 10k?

感谢阅读!

解决方法

如果 UrlappName 完全匹配,那么您应该使用:

SecondTable
| where TimeStamp > ago(operationsDiffTime)
| where Url in (appName)   // 'in' instead of 'has_any'
| where Result == "Fail" 

否则,您需要使用 Urlextend 中提取应用程序名称,然后像我上面建议的那样使用 in,因此您的查询将如下所示:

SecondTable
| where TimeStamp > ago(operationsDiffTime)
| extend ExtractedAppNameFromUrl = ...
| where ExtractedAppNameFromUrl in (appName)   // 'in' instead of 'has_any'
| where Result == "Fail"