Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-cloud-platform/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
无法使AzureDiagnostics的查询正常工作_Azure_Azure Log Analytics - Fatal编程技术网

无法使AzureDiagnostics的查询正常工作

无法使AzureDiagnostics的查询正常工作,azure,azure-log-analytics,Azure,Azure Log Analytics,我无法让这个问题起作用。我从Microsoft获得此查询: 但是我无法通过远程IP。我做错了什么 AzureDiagnostics | where Category == "TunnelDiagnosticLog" | where _ResourceId == tolower("<RESOURCEID OF GATEWAY>") | where TimeGenerated > ago(5m) | where remoteIP_s == "<REMOTE IP OF TU

我无法让这个问题起作用。我从Microsoft获得此查询:

但是我无法通过远程IP。我做错了什么

AzureDiagnostics
| where Category == "TunnelDiagnosticLog"
| where _ResourceId == tolower("<RESOURCEID OF GATEWAY>")
| where TimeGenerated > ago(5m) 
| where remoteIP_s == "<REMOTE IP OF TUNNEL>"
| where status_s == "Disconnected"
| project TimeGenerated, OperationName, instance_s, Resource, ResourceGroup, _ResourceId 
| sort by TimeGenerated asc

原因是日志将花费数小时在日志分析工作空间中填充,直到查询失败,因为无法查询元素remoteIP

你可以等几个小时,然后检查它是否能工作


跟踪此问题存在一些问题,请参阅和。

谢谢。我使用的是基于策略的,不支持此查询。有没有其他解决办法?要在隧道断开连接时获得警报?@RobinJohansson,我不知道如何使用基于策略的方法。但是,请随意在我的帖子中评论github问题,它们可能会为您提供一些想法。@RobinJohansson,对于这个基于政策的特定问题,您可以评论github问题。如果我的帖子有帮助,你能帮我把它标记为答案吗?谢谢