0Pricing
AWS Security Academy · Lesson

What VPC Flow Logs Capture

Understand the connection metadata recorded for your network.

What VPC Flow Logs Capture is a free AWS Security Academy lesson on CoddyKit — lesson 1 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the AWS Security Academy learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.

What VPC Flow Logs Are

VPC Flow Logs capture metadata about the IP traffic flowing to and from network interfaces in your Virtual Private Cloud (VPC). They record information about connections, giving security teams visibility into who talked to whom, on which ports, and whether the traffic was allowed or blocked.

Metadata, Not Payload

A crucial point: Flow Logs record connection metadata only, never the actual packet contents. You see source and destination IPs, ports, protocol, byte and packet counts, and the action taken. You do not see the data inside the packets. For payload inspection you need VPC Traffic Mirroring instead.

Why Security Teams Want Them

Network metadata reveals patterns attackers cannot easily hide: a host scanning many ports, large outbound transfers suggesting exfiltration, or connections to known-bad IPs. Flow Logs provide the raw evidence to spot these and to reconstruct what a compromised instance was talking to during an incident.

Accepted and Rejected Traffic

Each flow log record includes an action of ACCEPT or REJECT, reflecting whether security groups and network ACLs permitted the traffic. Watching REJECTs reveals attempted connections that were blocked, useful for spotting probing. Reviewing ACCEPTs confirms what actually got through, which matters most during an investigation.

Where Logs Can Go

Flow Logs can be delivered to three destinations: CloudWatch Logs for alerting and Insights queries, Amazon S3 for cheap archival and Athena analysis, or Amazon Kinesis Data Firehose for streaming to other systems. The destination you pick depends on whether you need real-time alerting or large-scale querying.

Flow Logs Do Not Affect Traffic

Enabling Flow Logs is passive: it has no impact on network performance or throughput and does not change whether traffic is allowed. It is pure observation. This makes it safe to enable broadly, and the exam expects you to know it is a monitoring tool, not an enforcement control.

What Is Not Logged

Some traffic is excluded by design, such as traffic to Amazon DNS, Windows license activation, instance metadata at 169.254.169.254, and DHCP. Knowing these gaps prevents false conclusions during an investigation, since their absence in the logs is expected rather than suspicious.

Custom Log Formats

You can choose the default format or a custom format that adds fields like the VPC ID, subnet ID, instance ID, TCP flags, and traffic path. Richer fields make queries far more useful, letting you pivot directly from a flow to the exact instance and subnet involved without extra lookups.

Aggregation Interval

Flow Logs aggregate traffic over an aggregation interval, either ten minutes or one minute. A shorter interval gives faster visibility for detection at higher log volume and cost. For security monitoring the one-minute interval is often worth it to shrink the gap between an event and seeing it.

Flow Logs in Detection

Flow Logs are also a behind-the-scenes data source for GuardDuty, which analyzes them for threats without you managing the pipeline. You can still enable your own Flow Logs for raw evidence and custom queries. Together they give both managed detection and the underlying data for deep investigation.

Putting It in Context

Flow Logs answer "what connected to what" across your VPC. They are passive, metadata-only, and flexible in destination. Pair them with security groups and NACLs for enforcement, GuardDuty for detection, and Athena for analysis. They are a cornerstone of network visibility in the AWS security toolkit.

Quick Check

Test your understanding of what Flow Logs capture.

Recap

VPC Flow Logs record connection metadata (IPs, ports, protocol, bytes, and an ACCEPT/REJECT action) but never packet payloads. They are passive with no performance impact and can deliver to CloudWatch Logs, S3, or Kinesis Firehose. Custom formats add useful fields, the aggregation interval can be one minute, and the data also feeds GuardDuty.

Frequently asked questions

Is the “What VPC Flow Logs Capture” lesson free?

Yes — the full text of “What VPC Flow Logs Capture” is free to read here on the web, and the AWS Security Academy course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the AWS Security Academy course, upgrade to CoddyKit PRO.

What will I learn in “What VPC Flow Logs Capture”?

Understand the connection metadata recorded for your network. You practise AWS Security Academy with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.

Do I need any experience to start AWS Security Academy?

No prior experience is required. AWS Security Academy on CoddyKit is structured for beginners through advanced learners; this is — lesson 1 of 4, so you can start here or from the beginning and move at your own pace.

How long does the “What VPC Flow Logs Capture” lesson take?

Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.

Can I write and run code in this AWS Security Academy lesson?

Yes. Every AWS Security Academy lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.

All lessons in this course

  1. What VPC Flow Logs Capture
  2. Reading Flow Log Records and Fields
  3. Flow Logs at VPC, Subnet, and ENI Levels
  4. Spotting Suspicious Traffic in Flow Logs
← Back to AWS Security Academy