You can perform the tasks described on this page using the command line.
The following limitations apply when using the create-flow-logs
-
--resource-ids
has a maximum constraint of 25TransitGateway
orTransitGatewayAttachment
resource types. -
--traffic-type
is not a required field by default. An error is returned if you provide this for transit gateway resource types. This limit applies only to transit gateway resource types. -
--max-aggregation-interval
has a default value of60
, and is the only accepted value for transit gateway resource types. An error is returned if you try to pass any other value. This limit applies only to transit gateway resource types. -
--resource-type
supports two new resource types,TransitGateway
andTransitGatewayAttachment
. -
--log-format
includes all log fields for transit gateway resource types if you do not set which fields you want to include. This applies only to transit gateway resource types.
Create a flow log
-
create-flow-logs
(AWS CLI) -
New-EC2FlowLog (AWS Tools for Windows PowerShell)
Describe your flow logs
-
describe-flow-logs
(AWS CLI) -
Get-EC2FlowLog (AWS Tools for Windows PowerShell)
View your flow log records (log events)
-
get-log-events
(AWS CLI) -
Get-CWLLogEvent (AWS Tools for Windows PowerShell)
Delete a flow log
-
delete-flow-logs
(AWS CLI) -
Remove-EC2FlowLog (AWS Tools for Windows PowerShell)