You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 Network Watcher, such as when a flow begins, continues, ends, or is denied.
98
99
99
-
You can enable RecordTypes filtering during flow log creation by choosing which flow record formats to collect in order to tailor logging output without generating unnecessary data.
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: 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" |
119
+
120
+
## Manage RecordTypes filtering condition
121
+
122
+
You can enable RecordTypes filtering during flow log creation by choosing which flow record formats to collect in order to tailor logging output without generating unnecessary data. You can also update RecordTypes filterning condition for an existing flow log.
100
123
101
124
```azurepowershell-interactive
102
125
# Enable RecordTypes filtering while creating flowlog
0 commit comments