Glossary

VPC flow logging


A


B


C


D


E


F


G


H


I


J


K


L


M


N


O


P


Q


R


S


T


U


V


W


X


Y


Z

    What is VPC flow logging?

    VPC Flow logging lets you capture and log data about network traffic in your VPC. VPC Flow logging records information about the IP data going to and from designated network interfaces, storing this raw data in Amazon CloudWatch, where it can be retrieved and viewed.

    VPC flow logs dashboard sumo

    A VPC flow logging dashboard from Sumo Logic


    Click here to learn more about AWS Traffic Mirroring.

    Virtual private cloud

    Monitor all the activity within your cloud environment for a bird’s eye view of your operations but note the pricing above. Analysis of VPC logging should reveal popular or vulnerable resources to watch closely moving forward.

    Subnet

    VPCs are often divided into subnets spanning multiple availability zones in the region. Subnets can be private or public subnet. Private subnets isolate internal resources from public-facing traffic, among other uses. Public subnets require an elastic IP to communicate to the Internet. Create a flow log for a specific subnet where you may want to monitor all activity. In this example, you want to monitor flow logs to ensure no internet traffic goes to the private subnet.

    Network Interface

    One can monitor specific interfaces on AWS EC2 instances and capture flow logs from an interface. Capture full flow logs from critical connection points in your network to stay ahead of issues like latency and malicious intrusions.

    After choosing what resources you will log, define the logging parameters. These include:

    • Traffic type: You can filter by all, accepted, or rejected traffic.
    • Log name and destination: Specify a functional name for the log and where to store it in CloudWatch.
    • Necessary permissions: Ensure the log owner has identity access management (IAM) privileges to publish and work with the flow log.

    After setting up a flow log for a given resource, scaling is simple. The rules you outline will automatically replicate to additional instances, saving you time and trouble duplicating flow logs.

    • DNS traffic
    • DHCP

    Similarly, dynamic host configuration protocol (DHCP) traffic is not recorded. Depending on the size of your VPC, this can represent a notable amount of traffic.

    • Multiple IP Addresses

    Sometimes a virtual NIC will pool IP addresses for better performance. Flow logs only display traffic on the primary address.

    • Legacy limitations

    AWS instances before December 2013 running in the EC2 Classic format are incompatible with VPC Flow logging. Consider migrating to the current AWS format.

    With VPC Flow logging, Amazon adds a powerful deep analysis tool for your AWS cloud, including in a DevOps environment. Knowing how to turn it on, what critical data to collect, and what you can’t find in your VPC logs is a step in the right direction toward mastering VPC logging.

    Integrating directly with Google Stackdriver, Sumo Logic provides real-time observability for your GCP-generated log data. With the Sumo Logic app for Google Cloud VPC, gain real-time insights and analytics into network activity through interactive, customizable dashboards. You can look for unusual traffic patterns and suspicious activity with outlier detection.