VPC Flow Logs records information on what enters and leaves your VPC network. The flow log data can be published to Amazon S3 or CloudWatch Logs. Once created, the VPC flow log allows you to monitor every network interface in that VPC. The flow logs provide details on the:
You can use this information to monitor traffic trends and spot malicious requests, helping to secure data in the cloud.
This article elaborates on the steps to create, view, control, and delete flow logs.
To get started, you need to create a VPC flow log that publishes the flow log data to a destination defined by you. Check out this article on how to create and publish the VPC flow logs to Amazon CloudWatch or S3.
After creating and specifying the destination for publishing the flow logs, you can analyze the collected data in the destination to gain insights into the traffic that enters and exits your network.
Flow logs provide information on:
Check out the steps below to see how to view the flow logs published in a different destination.
There might be instances where you need to change an existing VPC flow log’s configuration parameters. However, modifying the parameters of an existing flow log is not possible in Amazon VPC. Instead, you must delete the existing VPC flow log and create a new one.
Note: Deleting the VPC flow log only disables the flow log service and does not delete the logs that have already been published to a destination.
In AWS, Identity and Access Management (IAM) users do not have permissions to create or delete VPC flow logs by default. The permission to work with VPC flow logs has to be explicitly granted to specific users or groups of users.
{
{"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"ec2:DeleteFlowLogs",
"ec2:CreateFlowLogs",
"ec2:DescribeFlowLogs"
],
"Resource": "*"
}
]
}
VPC flow logs provide a single source of information for monitoring the traffic flowing through the different network interfaces and subnets in a VPC. By properly configuring the VPC flow logs to log the activities that need monitoring, you can leverage VPC flow logs to their full extent and take your business forward.
Zoho Corporation Pvt. Ltd. All rights reserved.