Azure ポータルでこれらのクエリを使用する方法については、Log Analytics tutorialを参照してください。 REST API については、「 Query」を参照してください。
破棄されたネットワーク フロー ログ
削除されたすべてのネットワーク フロー ログを取得します。
RetinaNetworkFlowLogs
| where Verdict == "DROPPED"
| limit 100
上位 10 件のネットワーク フロー ログ メトリック
送受信された合計バイト数で上位 10 個の送信元 IP と宛先 IP のネットワーク フロー ログ メトリックを取得します。
let TopSourceIPs =
RetinaNetworkFlowLogs
| summarize TotalPacketsSent = sum(PacketsSent) by SourceIP = IP.Source
| extend MetricCategory = "Top Source IPs by Packets Sent"
| project MetricCategory, Entity = SourceIP, Value = TotalPacketsSent
| top 10 by Value desc;
let TopDestinationIPs =
RetinaNetworkFlowLogs
| summarize TotalPacketsReceived = sum(PacketsReceived) by DestinationIP = IP.Destination
| extend MetricCategory = "Top Destination IPs by Packets Received"
| project MetricCategory, Entity = DestinationIP, Value = TotalPacketsReceived
| top 10 by Value desc;
let TopSourceIPsByBytes =
RetinaNetworkFlowLogs
| summarize TotalBytesSent = sum(BytesSent) by SourceIP = IP.Source
| extend MetricCategory = "Top Source IPs by Bytes Sent"
| project MetricCategory, Entity = SourceIP, Value = TotalBytesSent
| top 10 by Value desc;
let TopDestinationIPsByBytes =
RetinaNetworkFlowLogs
| summarize TotalBytesReceived = sum(BytesReceived) by DestinationIP = IP.Destination
| extend MetricCategory = "Top Destination IPs by Bytes Received"
| project MetricCategory, Entity = DestinationIP, Value = TotalBytesReceived
| top 10 by Value desc;
let TopProtocols =
RetinaNetworkFlowLogs
| summarize TotalUsage = count() by Protocol
| extend MetricCategory = "Top Protocols by Usage"
| project MetricCategory, Entity = Protocol, Value = TotalUsage
| top 10 by Value desc;
TopSourceIPs
| union TopDestinationIPs
| union TopSourceIPsByBytes
| union TopDestinationIPsByBytes
| union TopProtocols