嵌套查询日志分析

时间:2018-03-08 13:54:24

标签: azure query-string azure-log-analytics

您好我试图通过在"其中"中嵌套查询来获取日志事件。另一个查询。这有可能吗?

AzureDiagnostics 
| where resource_workflowName_s == "[Workflow Name]"
| where resource_runId_s == (AzureDiagnostics | where trackedProperties_PayloadID_g == "[GUID]" | distinct resource_runId_s)

1 个答案:

答案 0 :(得分:0)

尝试:

AzureDiagnostics 
| where resource_workflowName_s == "[Workflow Name]"
| where resource_runId_s in (
     toscalar(AzureDiagnostics 
              | where trackedProperties_PayloadID_g == "[GUID]" 
              | distinct resource_runId_s))