VPC Flow logs

  • VPC Flow Logs is a feature that enables you to capture information about the IP traffic going to and from network interfaces in your VPC.
  • Flow log data can be published to Amazon CloudWatch Logs or Amazon S3.
  • Helps to monitor & troubleshoot connectivity issues.
  1. VPC Flow Logs
  2. Subnet Flow Logs
  3. Elastic Network Interface Flow Logs
  • You can create flow logs for network interfaces that are created by other AWS services, such as — Elastic Load Balancing, Amazon RDS, Amazon ElastiCache, Amazon Redshift, Amazon WorkSpaces, NAT gateways, Transit gateways.
  • Query VPC flow logs using Athena on S3 or CloudWatch Logs Insight.
  • <version> — The VPC Flow Logs version. The defaults version is 2.
  • <account-id> — The AWS account ID of the owner of the source network interface for which traffic is recorded.
  • <interface-id> — The ID of the network interface for which the traffic is recorded.
  • <srcaddr> — The source address for incoming traffic.
  • <dstaddr> — The destination address for outgoing traffic.
  • <srcport> — The source port of the traffic.
  • <dstport> — The destination port of the traffic.
  • <protocol> — The IANA protocol number of the traffic
  • <packets> — The number of packets transferred during the flow.
  • <bytes> — The number of bytes transferred during the flow.
  • <start> — The time, in Unix seconds, when the first packet of the flow was received within the aggregation interval.
  • <end> — The time, in Unix seconds, when the last packet of the flow was received within the aggregation interval.
  • <action> The action that is associated with the traffic:
  • <log- status>- The logging status of the flow log:

--

--

DevOps Engineer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store