1

您好我正在尝试通过将查询嵌套在另一个查询的“位置”中来获取日志事件。这可能吗?

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

1 回答 1

0

尝试:

AzureDiagnostics 
| where resource_workflowName_s == "[Workflow Name]"
| where resource_runId_s in (
     toscalar(AzureDiagnostics 
              | where trackedProperties_PayloadID_g == "[GUID]" 
              | distinct resource_runId_s))
于 2018-03-11T15:40:25.650 回答