Create and manage Amazon Transit Gateway Flow Logs using APIs or the CLI
You can perform the tasks described on this page using the command line.
The following limitations apply when using the create-flow-logs command:
-
--resource-idshas a maximum constraint of 25TransitGatewayorTransitGatewayAttachmentresource types. -
--traffic-typeis 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-intervalhas 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-typesupports two new resource types,TransitGatewayandTransitGatewayAttachment. -
--log-formatincludes 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 (Amazon CLI)
-
New-EC2FlowLog (Amazon Tools for Windows PowerShell)
Describe your flow logs
-
describe-flow-logs (Amazon CLI)
-
Get-EC2FlowLog (Amazon Tools for Windows PowerShell)
View your flow log records (log events)
-
get-log-events (Amazon CLI)
-
Get-CWLLogEvent (Amazon Tools for Windows PowerShell)
Delete a flow log
-
delete-flow-logs (Amazon CLI)
-
Remove-EC2FlowLog (Amazon Tools for Windows PowerShell)