如需在 Azure 入口網站 使用這些查詢的詳細資訊,請參閱Log Analytics教學課程。 如需 REST API,請參閱 查詢。
尋找值為作用中的所有項目
元件狀態更新事件會從裝置投影。 此查詢會列出值為作用中的所有記錄。
MNFDeviceUpdates
| where EventCategory == "ComponentStateUpdates"
| where Properties has "ACTIVE"
| project EventName, EventCategory, DeviceId, TimeGenerated, Properties
| sort by TimeGenerated desc
| limit 100
尋找所有值升高的條目
介面狀態更新會從裝置投射出來。 此查詢會列出所有值為上升的記錄。
MNFDeviceUpdates
| where EventCategory == "InterfaceStateUpdates"
| where Properties !has "DOWN"
| project EventName, EventCategory, DeviceId, TimeGenerated, Properties
| sort by TimeGenerated desc
| limit 100
尋找 VxlanVlanToVniVlan 類型的所有事件
介面 vxlan 更新事件會從裝置投射出來。 此查詢會列出事件類型為 VxlanVlanToVniVlan 的所有記錄。
MNFDeviceUpdates
| where EventCategory == "InterfaceVxlanUpdates"
| where Properties has "VxlanVlanToVniVlan"
| project EventName, EventCategory, DeviceId, TimeGenerated, Properties
| sort by TimeGenerated desc
| limit 100
尋找 afisafiname 不是類型 L2VPN_EVPN 的所有專案
BGP 通訊期間路由器之間發生的網路實例鄰居更新會以 afisafiname 類型列出。 這是用來篩選記錄的查詢,其中 afisafiname 不是 L2VPN_EVPN 類型。
MNFDeviceUpdates
| where EventCategory == "NetworkInstanceBgpNeighborUpdates"
| where Properties !has "L2VPN_EVPN"
| project EventName, EventCategory, DeviceId, TimeGenerated, Properties
| sort by TimeGenerated desc
| limit 100
尋找所有網路實例名稱類型為 workload-mgmt 的項目
來自裝置的網路實例更新事件將會以不同的實例名稱在這裏回報。 此查詢會篩選工作負載-mgmt 類型的所有網路實例。
MNFDeviceUpdates
| where EventCategory == "NetworkInstanceUpdates"
| where Properties has "WORKLOAD-MGMT"
| project EventName, EventCategory, DeviceId, TimeGenerated, Properties
| sort by TimeGenerated desc
| limit 100