Open In App

AWS VPC Flow Logs

Amazon VPC Flow Logs is a feature that enables you to capture and log the information about the network traffic going to and from the designated network interfaces within your VPC. It can be used as a centralized, single source of information to monitor different network aspects of your VPC. 

Kinds of VPC Flow Logs

It is very much important to understand what is monitored and how the logs compile the data. Amazon Web Service (AWS) Offers flow logging at three separate levels:



Enabling  VPC Flow Logs

You can enable VPC Flow Logs from the AWS Management Console or the AWS Command Line Interface (CLI), or by making calls to the EC2 API. By default, VPC is not enabled.

 

To Create a Flow log, you need to specify:



  1. Resource for which to create the flow log (By using the above method, this will be automatically filled up)
  2. Type of traffic to capture (accepted traffic, rejected traffic, or all traffic).
  3. Destinations to which you want to publish the flow log data.

Publishing Flow Logs

VPC Flow Logs can be sent to either 

  1. CloudWatch Logs: To send Flow log data to the CloudWatch log group, a log group must be created to specify.
  2. S3 Bucket: To send Flow log data to Amazon S3, you’d need an existing S3 bucket to specify.

VPC Flow Logs Use Cases:

VPC Flow Logs Limitations:

Conclusion

With VPC Flow Logs, AWS adds a powerful deep analysis to your cloud environment. Knowing how to turn it on, what critical data to collect, its limitations and its pricing help you to utilize it in an efficient way.

Article Tags :