活动
你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
MNFDeviceUpdates 表的查询
有关在 Azure 门户中使用这些查询的信息,请参阅 Log Analytics 教程。 有关 REST API,请参阅查询。
组件状态更新事件由设备预测。 此查询将列出值处于活动状态的所有日志。
query
MNFDeviceUpdates
| where EventCategory == "ComponentStateUpdates"
| where Properties has "ACTIVE"
| project EventName, EventCategory, DeviceId, TimeGenerated, Properties
| sort by TimeGenerated desc
| limit 100
接口状态更新由设备预测。 此查询将列出值为最新的所有日志。
query
MNFDeviceUpdates
| where EventCategory == "InterfaceStateUpdates"
| where Properties !has "DOWN"
| project EventName, EventCategory, DeviceId, TimeGenerated, Properties
| sort by TimeGenerated desc
| limit 100
接口 vxlan 更新事件由设备预测。 此查询将列出事件类型为 VxlanVlanToVniVlan 的所有日志。
query
MNFDeviceUpdates
| where EventCategory == "InterfaceVxlanUpdates"
| where Properties has "VxlanVlanToVniVlan"
| project EventName, EventCategory, DeviceId, TimeGenerated, Properties
| sort by TimeGenerated desc
| limit 100
BGP 通信期间路由器之间发生的网络实例近邻更新按 afisafiname 类型列出。 该查询用于筛选 afisafiname 不是 L2VPN_EVPN 类型的日志。
query
MNFDeviceUpdates
| where EventCategory == "NetworkInstanceBgpNeighborUpdates"
| where Properties !has "L2VPN_EVPN"
| project EventName, EventCategory, DeviceId, TimeGenerated, Properties
| sort by TimeGenerated desc
| limit 100
来自设备的网络实例更新事件将在此处以不同的实例名称报告。 此查询会筛选类型 workload-mgmt 的所有网络实例。
query
MNFDeviceUpdates
| where EventCategory == "NetworkInstanceUpdates"
| where Properties has "WORKLOAD-MGMT"
| project EventName, EventCategory, DeviceId, TimeGenerated, Properties
| sort by TimeGenerated desc
| limit 100
其他资源
培训
模块
引导式项目 - 使用 KQL 分析 Azure Monitor 中的日志 - Training
编写日志查询,深入了解你的业务、IT 运营和性能。 使用 Kusto 查询语言 (KQL) 提取 Azure Monitor Log Analytics 中的日志数据。