Interview Prep/AWS/VPC and Networking

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.

aws All AWS questions Roadmap: AWS core services

More on VPC and Networking