ARNscopeDocs

VPC flow logs

Last updated 1 December 2026

Use case: Who deleted it?

The VPC Flow page (VPC flow logs in the sidebar) turns a VPC’s flow logs into a picture of its traffic: which resources talk to which, over which ports, how much goes to and from the internet, and what the security groups and network ACLs rejected. It is for questions like “what is this service connecting to?” and “who is probing us?”.

It reads flow logs that already exist. ARNscope does not create flow logs or change the VPC.

When it shows in the sidebar

VPC Flow appears in the sidebar only where it can work: when the current profile and region have at least one VPC flow log. ARNscope finds that out from the same flow log list the page itself loads (ec2:DescribeFlowLogs), fetched once in the background when you pick a profile or region. Switch to a profile or region without flow logs and the icon leaves the sidebar; switch back and it returns.

It stays visible when:

While it is out of the sidebar, the quick switcher does not list VPCs either; a link or a favourite still opens the page.

Pick a VPC

The list shows every VPC of the profile and region, with its name, ID and CIDR, and a chip:

Chip Meaning
Flow logs At least one flow log is delivered to CloudWatch Logs and can be queried here.
S3 · DuckDB The flow logs go to S3. Analyse with DuckDB answers three questions over them instead of the charts below (see Flow logs in S3).
Not queryable A flow log exists but cannot be queried (see below).
Off The VPC records no flow logs. The page explains what flow logs are and what enabling them involves: a destination, an IAM role for CloudWatch delivery, the scope and the traffic filter, and the cost.

Filter VPCs matches name, ID or CIDR. When a VPC has more than one flow log, a menu in the header picks which to analyse.

A flow log can be queried when it goes to CloudWatch Logs, has a log group, and its format includes the fields ARNscope needs: srcaddr, dstaddr, dstport, protocol, packets, bytes and action. The default format has them. If a custom format leaves one out, the page names the missing fields.

Run an analysis

Nothing runs until you click Run analysis. Before that the page shows a Query plan: the log group, the time range (“Last 1h, ending now”), the three Logs Insights queries it will run (timeline, conversations and rejected), and the log group’s stored size and retention.

Logs Insights bills per GB scanned, and each query scans the whole time range, so a shorter range costs less. Choose 15m, 1h, 3h or 24h. While it runs, the page shows the bytes scanned and the records read so far, and Cancel stops it.

When it finishes, the strip above the tabs says how much it scanned, for example “Last 1h · 412 MB scanned · 1.8M records”. Hover it for the exact queries.

Flow logs in S3

For a flow log delivered to S3, the page shows an Analyse with DuckDB panel instead of the query plan. It asks one of three Investigate questions of the flow log’s own S3 folder, with DuckDB, read-only with your profile:

Pick the question, fill in the IP or port, and choose the time (15m, 1h, 6h, 24h or Custom, in UTC). Before anything runs, the strip shows how many files and bytes it can read and which files the time covers. Analyse with DuckDB opens the result on the Databases page under Investigate, with a one-sentence answer and follow-ups such as “Traffic between a and b”. Open folder in DuckDB console opens a console on the folder with the generated SQL as a draft, to write your own query.

Text (.log.gz) and Parquet files both work, with the default or a custom format, Hive-compatible prefixes and hourly partitions. A custom format needs srcaddr, dstaddr, dstport, protocol, packets, bytes, start, end and action; the panel names any that are missing. Reading the files needs s3:ListBucket, s3:GetObject and s3:GetBucketLocation on the log bucket, and S3 request charges apply instead of Logs Insights charges.

Overview

Addresses are labelled with what they belong to: an ECS task, a Lambda function, an EC2 instance or another network interface in the VPC, a peered VPC, or internet. An interface that no longer exists (usually a finished ECS task or a removed Lambda) has no label, since ECS only describes stopped tasks for about an hour.

The panel on the right shows details for the flow log (what it is attached to, destination, which records it keeps, aggregation interval, delivery status, log group size and the record format) or, when you focus a resource, its interfaces and who it receives from and sends to.

Blocked traffic

The Blocked traffic tab lists rejected connections grouped by source address, target resource and port, and the most-probed ports. Ports that are commonly scanned are marked. A count on the tab shows the number of rejected records.

Records

Records loads the newest 1,000 raw records for the range, with time, action, source, destination, ports, protocol, bytes, packets and interface. Filter by action (ACCEPT or REJECT), port (source or destination) and an address fragment first. The filters run inside Logs Insights, so they narrow the result, not the data scanned. Loading records is one more Insights query.

Permissions

What Actions
VPCs and flow logs ec2:DescribeVpcs, ec2:DescribeSubnets, ec2:DescribeFlowLogs, logs:DescribeLogGroups
Labelling addresses ec2:DescribeNetworkInterfaces, ec2:DescribeVpcPeeringConnections, ecs:ListClusters, ecs:ListTasks, ecs:DescribeTasks
The analysis logs:StartQuery, logs:GetQueryResults, logs:StopQuery on the flow log group

If the ECS actions are denied, the analysis still runs and addresses simply carry fewer labels. The IAM permission check shows which of these your role has. The ECS page uses the same flow logs for its Network tab.

Limitations

Missing a question for S3 flow logs? Write to hello@arnscope.com and tell us what you need to find.