Export VPC Logs

This page helps users to configure the VPC logs to ingest into the Google Cloud Storage bucket:

Note:

  • Logs are generated only when activity occurs.
  • VPC Flow Logs may take several minutes to appear.
  • Test resources must be located in the same VPC where logging is enabled.

Set Up VPC Flow Logging

Prerequisites

  • Billing must be enabled on the project.

  • The following APIs must be enabled:

    • Compute Engine API
    • Network Management API

Steps

  • Navigate to VPC network -> VPC networks.

  • Select your VPC.

  • Click Manage flow logs.

  • Click Add configuration.

  • Configure the flow log settings:

    • Aggregation interval: 5 seconds
    • Sampling rate: 100%
    • Metadata: All
    • Filter: None

Note: Flow logging applies to the entire VPC and requires network activity to generate logs.