Skip to content

Commit 4748bae

Browse files
Added section on RecordType Filtering
Added section on filtering Virtual Network Flow Logs based on RecordTypes, including supported values and example scenarios.
1 parent c34f7a8 commit 4748bae

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

articles/network-watcher/vnet-flow-logs-filtering.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,29 @@ Set-AzNetworkWatcherFlowLog -Enabled $true -Name 'myVNetFlowLog' -NetworkWatcher
9393
-EnableTrafficAnalytics -TrafficAnalyticsWorkspaceId $workspace.ResourceId `
9494
-EnableRetention $true -RetentionPolicyDays 15
9595
```
96+
## Filtering based on RecordTypes
97+
98+
You can filter Virtual Network Flow Logs based on the state of a network flow. Flow state represents the lifecycle stage of a connection as observed by Azure Network Watcher, such as when a flow begins, continues, ends, or is denied.
99+
100+
Use the RecordTypes parameter to specify which flow states you want to record. The parameter accepts one or more comma‑separated values.
101+
102+
### Supported RecordType Values
103+
104+
| Value | Description |
105+
|-------|-------------|
106+
| B | Begin, when a flow is created. No statistics are provided. |
107+
| C | Continuing for an ongoing flow. Statistics are provided at five-minute intervals. |
108+
| E | End, when a flow is terminated. Statistics are provided. |
109+
| D | Deny, when a flow is denied. |
110+
111+
### Example scenarios using RecordTypes
112+
113+
| Scenario | RecordTypes value |
114+
|----------|-------------------|
115+
| Capture only denied traffic | "D" |
116+
| Capture flow creation and termination events | "B,E" |
117+
| Capture only active traffic statistics | "C" |
118+
| Capture full flow lifecycle | "B,C,E" |
96119

97120
## Update RecordTypes filtering condition
98121

0 commit comments

Comments
 (0)