Skip to content

Commit 7c732fb

Browse files
committed
add vnet flow logs query
1 parent 28c6e73 commit 7c732fb

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

articles/network-watcher/traffic-analytics-schema.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,14 @@ Traffic analytics is a cloud-based solution that provides visibility into user a
3232
- `FlowStartTime` field indicates the first occurrence of such an aggregated flow (same four-tuple) in the flow log processing interval between `FlowIntervalStartTime` and `FlowIntervalEndTime`.
3333
- For any resource in traffic analytics, the flows indicated in the Azure portal are total flows seen, but in Azure Monitor logs, user sees only the single, reduced record. To see all the flows, use the `blob_id` field, which can be referenced from storage. The total flow count for that record matches the individual flows seen in the blob.
3434

35+
The following query helps you look at all subnets interacting with non-Azure public IPs in the last 30 days.
36+
37+
```
38+
NTANetAnalytics
39+
| where SubType == "FlowLog" and FlowStartTime >= ago(30d) and FlowType == "ExternalPublic"
40+
| project SrcSubnet, DestSubnet
41+
```
42+
3543
# [**Network security group flow logs**](#tab/nsg)
3644

3745
- All flow logs at a network security group between `FlowIntervalStartTime_t` and `FlowIntervalEndTime_t` are captured at one-minute intervals as blobs in a storage account.
@@ -41,8 +49,6 @@ Traffic analytics is a cloud-based solution that provides visibility into user a
4149
- `FlowStartTime_t` field indicates the first occurrence of such an aggregated flow (same four-tuple) in the flow log processing interval between `FlowIntervalStartTime_t` and `FlowIntervalEndTime_t`.
4250
- For any resource in traffic analytics, the flows indicated in the Azure portal are total flows seen by the network security group, but in Azure Monitor logs, user sees only the single, reduced record. To see all the flows, use the `blob_id` field, which can be referenced from storage. The total flow count for that record matches the individual flows seen in the blob.
4351

44-
---
45-
4652
The following query helps you look at all subnets interacting with non-Azure public IPs in the last 30 days.
4753

4854
```
@@ -87,9 +93,10 @@ The previous query constructs a URL to access the blob directly. The URL with pl
8793

8894
```
8995
https://{storageAccountName}@insights-logs-networksecuritygroupflowevent/resoureId=/SUBSCRIPTIONS/{subscriptionId}/RESOURCEGROUPS/{resourceGroup}/PROVIDERS/MICROSOFT.NETWORK/NETWORKSECURITYGROUPS/{networkSecurityGroupName}/y={year}/m={month}/d={day}/h={hour}/m=00/macAddress={macAddress}/PT1H.json
90-
9196
```
9297

98+
---
99+
93100
## Traffic analytics schema
94101

95102
Traffic analytics is built on top of Azure Monitor logs, so you can run custom queries on data decorated by traffic analytics and set alerts.

0 commit comments

Comments
 (0)