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 enable RecordTypes filtering during Flow Log creation to choose which flow record formats to collect using the cmdlet below. This helps tailor logging output without generating unnecessary data.
98
+
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.
99
99
100
100
```azurepowershell-interactive
101
-
# Enabling RecordTypes filtering while creating flowlog
101
+
# Enable RecordTypes filtering while creating flowlog
102
102
New-AzNetworkWatcherFlowLog `
103
103
-Enabled $true -Name <FlowLog Name> `
104
104
-NetworkWatcherName <Network Watcher Name> `
105
105
-ResourceGroupName NetworkWatcherRG `
106
106
-StorageId <Storage Account ID> `
107
107
-TargetResourceId <Target Resource/VNet ID> `
108
108
-RecordTypes "<Record Types>"
109
+
```
109
110
110
-
# Update RecordTypes filtering condition on existing flowlog
111
+
```azurepowershell-interactive
112
+
# Update RecordTypes filtering condition on existing flow log
111
113
Set-AzNetworkWatcherFlowLog `
112
114
-Enabled $true -Name <FlowLog Name> `
113
115
-NetworkWatcherName <Network Watcher Name> `
114
116
-ResourceGroupName <Resource Group Name> `
115
117
-StorageId <Storage Account ID> `
116
118
-TargetResourceId <Target Resource/VNet ID> `
117
119
-RecordTypes "<Record Types>"
120
+
```
118
121
119
-
120
-
# Remove RecordTypes filtering condition from existing flowlog
122
+
```azurepowershell-interactive
123
+
# Remove RecordTypes filtering condition from existing flow log
121
124
Set-AzNetworkWatcherFlowLog `
122
125
-Enabled $true -Name <FlowLog Name> `
123
126
-NetworkWatcherName <Network Watcher Name> `
124
127
-ResourceGroupName <Resource Group Name> `
125
128
-StorageId <Storage Account ID> `
126
129
-TargetResourceId <Target Resource/VNet ID> `
127
130
-RecordTypes ""
131
+
```
128
132
129
-
# Enabling RecordTypes and EnabledFilteringCriteria filtering while creating flowlog
133
+
```azurepowershell-interactive
134
+
# Enable RecordTypes and EnabledFilteringCriteria filtering while creating flow log
0 commit comments