Use Amazon VPC Flow Logs to monitor traffic to and from your VPC, subnet, or elastic network interface. Analyze the data to understand traffic patterns and identify unexpected communication between resources. For more information, see Logging IP traffic using VPC Flow Logs.