你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
有关在 Azure 门户中使用这些查询的信息,请参阅 Log Analytics 教程。 有关 REST API,请参阅查询。
已删除的网络流日志
获取已删除的所有网络流日志。
RetinaNetworkFlowLogs
| where Verdict == "DROPPED"
| limit 100
前 10 个网络流日志指标
按发送和接收的总字节数获取前 10 个源和目标 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