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