What are VPC Flow Logs and what do they capture?
IntermediateConceptVPC and Networking
Answer
Flow Logs record metadata about IP traffic at VPC, subnet or ENI level: source/destination IP and port, protocol, packets, bytes, ACCEPT or REJECT, and with custom format also pkt-srcaddr, flow-direction, tcp-flags and the AZ. They do not capture payloads, DNS to the Amazon resolver, DHCP or instance metadata traffic.
Deliver to S3 (cheapest, query with Athena) or CloudWatch Logs. A REJECT on a SG shows as one-way, a NACL reject shows both directions.
More on VPC and Networking
What is a VPC and what are the CIDR constraints?BeginnerWhat makes a subnet public or private?BeginnerHow do route tables work, including the local route and longest-prefix match?IntermediateInternet Gateway vs NAT Gateway: what does each do?BeginnerNAT Gateway vs NAT instance?IntermediateSecurity group vs network ACL: compare them.Beginner