Hi @ishan saxena,
Thanks for reaching out on Microsoft Q&A forum.
I understand you're trying to query blocked NSG traffic using the new Virtual Network Flow Logs, but you're seeing this error:'where' operator: Failed to resolve table or column expression named 'AzureNetworkAnalytics_CL'
This happens because that table belongs to the retired NSG Flow Logs / Traffic Analytics pipeline. With Virtual network flow logs, the data is stored in different Log Analytics tables.
- AzureNetworkAnalytics_CL is from legacy NSG Flow Logs (v1/v2)
- This table was created by the old Traffic Analytics solution tied to NSG Flow Logs v2.
Since NSG Flow Logs are being retired, the table is no longer populated-https://quic.hkg1.meaqua.org/en-us/azure/network-watcher/nsg-flow-logs-migrate
As mentioned by @Marcin Policht,The new Virtual Network Flow Logs write to new tables:
-
NTANetAnalytics— flow records-[ https://quic.hkg1.meaqua.org/en-us/azure/azure-monitor/reference/tables/ntanetanalytics] -
NTAIpDetails— IP metadata, threat info-[ https://quic.hkg1.meaqua.org/en-us/azure/azure-monitor/reference/tables/ntaipdetails]
Because of this, Microsoft requires all customers to use Virtual Network Flow Logs + Traffic Analytics going forward.
So, enable Traffic Analytics on your Virtual Network Flow Log and query these new tables in Log Analytics and then you will be able to view the logs.
Kindly let us know if the above helps or you need further assistance on this issue.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".