VPC Flow Logs
What You'll Learn
You'll learn how VPC Flow Logs capture network traffic metadata to help you monitor security and diagnose connectivity issues.
What Are VPC Flow Logs?
VPC Flow Logs are like security camera recordings for your network traffic. They don't capture the actual data being sent (like email contents or file uploads), but they do record who talked to whom, when, and whether the connection succeeded.
Each flow log entry captures metadata about network connections:
- Source and destination IP addresses (who's communicating)
- Source and destination ports (which services are involved)
- Protocol (TCP, UDP, ICMP)
- Number of packets and bytes transferred
- Action (whether Security Groups or NACLs accepted or rejected the traffic)
- Timestamp information
Why This Matters
Think of troubleshooting without flow logs like investigating a crime scene with no witnesses. With flow logs, you can:
- Debug connectivity issues: "Why can't my application reach the database?" Flow logs show if packets are being rejected and by which security control.
- Monitor security: Detect unusual traffic patterns, port scanning attempts, or unauthorized access attempts.
- Audit compliance: Prove which resources communicated with each other during specific timeframes.
- Analyze costs: Identify which resources generate the most network traffic.
Flow logs can be enabled at three levels: entire VPC, specific subnet, or individual network interface—letting you choose the granularity you need.
Key Takeaway: VPC Flow Logs are your network's black box recorder, capturing connection metadata (not content) to help you troubleshoot connectivity problems and monitor security without impacting performance.