1**Example 1: To describe all of your flow logs**
2
3The following ``describe-flow-logs`` example displays details for all of your flow logs. ::
4
5    aws ec2 describe-flow-logs
6
7Output::
8
9    {
10        "FlowLogs": [
11            {
12                "CreationTime": "2018-02-21T13:22:12.644Z",
13                "DeliverLogsPermissionArn": "arn:aws:iam::123456789012:role/flow-logs-role",
14                "DeliverLogsStatus": "SUCCESS",
15                "FlowLogId": "fl-aabbccdd112233445",
16                "MaxAggregationInterval": 600,
17                "FlowLogStatus": "ACTIVE",
18                "LogGroupName": "FlowLogGroup",
19                "ResourceId": "subnet-12345678901234567",
20                "TrafficType": "ALL",
21                "LogDestinationType": "cloud-watch-logs",
22                "LogFormat": "${version} ${account-id} ${interface-id} ${srcaddr} ${dstaddr} ${srcport} ${dstport} ${protocol} ${packets} ${bytes} ${start} ${end} ${action} ${log-status}"
23            },
24            {
25                "CreationTime": "2020-02-04T15:22:29.986Z",
26                "DeliverLogsStatus": "SUCCESS",
27                "FlowLogId": "fl-01234567890123456",
28                "MaxAggregationInterval": 60,
29                "FlowLogStatus": "ACTIVE",
30                "ResourceId": "vpc-00112233445566778",
31                "TrafficType": "ACCEPT",
32                "LogDestinationType": "s3",
33                "LogDestination": "arn:aws:s3:::my-flow-log-bucket/custom",
34                "LogFormat": "${version} ${vpc-id} ${subnet-id} ${instance-id} ${interface-id} ${account-id} ${type} ${srcaddr} ${dstaddr} ${srcport} ${dstport} ${pkt-srcaddr} ${pkt-dstaddr} ${protocol} ${bytes} ${packets} ${start} ${end} ${action} ${tcp-flags} ${log-status}"
35            }
36        ]
37    }
38
39**Example 2: To describe a subset of your flow logs**
40
41The following ``describe-flow-logs`` example uses a filter to display details for only those flow logs that are in the specified log group in Amazon CloudWatch Logs. ::
42
43    aws ec2 describe-flow-logs \
44        --filter "Name=log-group-name,Values=MyFlowLogs"
45