Create a Logging Sink Pub/Sub for the topic

Create a Cloud Logging Sink Pub/Sub


  1. Go to the Log Router page in the Google Cloud console.
  1. Select the project to create the sink in. If you are using an aggregated sink, you will want to select a folder or an organization instead.
  1. Click Create sink.
  1. While walking through the wizard steps, Select Cloud Pub/Sub topic for your Sink Destination Service and choose the topic you created in a previous step.

Use the inclusion filter of resource.type="gce_subnetwork" AND log_id("compute.googleapis.com/vpc_flows")

FieldValue
Sink nameAny value ( e.g. neto-flowlogs-sink)
Sink descriptionAny value (e.g. Netography Fusion flow log ingest)
Sink destination service typeCloud Pub/Sub topic
Sink destination Cloud Pub/Sub topicCreate a topic or use topic created in previous step
Inclusion filterresource.type="gce_subnetwork" AND log_id("compute.googleapis.com/vpc_flows")

You're done!