# Create a Logging Sink Pub/Sub for the topic

1. Go to the Log Router page in the Google Cloud console.

![](https://1075194167-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7upncbzIm3grJePXaOO9%2Fuploads%2Fgit-blob-9d792e3e5b4d27520586bf670aa3aee73d3526f7%2F3acdc0535852db3b72c65f07d3c7dea0837e6a4214320b6e49b3c1391770c495.png?alt=media)

2. 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.

![](https://1075194167-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7upncbzIm3grJePXaOO9%2Fuploads%2Fgit-blob-98bdf021d940a71d7174a2f935f65d8686edf680%2Fdf66c97a0741705cd38679d696178c34e8295155b283e8b0f6fdc6bae707efc8.png?alt=media)

3. Click **Create sink**.

![](https://1075194167-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7upncbzIm3grJePXaOO9%2Fuploads%2Fgit-blob-00df4b1d5cdf76f3cbe5fc57a4e0d27422269d37%2F257f3fcdf2274cc1a16ef092e23cb2ec70cf4a53590b182db7833faa03f54ba5.png?alt=media)

4. 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.

![](https://1075194167-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7upncbzIm3grJePXaOO9%2Fuploads%2Fgit-blob-ade2f1787343bdbd282edc1d710a11a1fe708a0f%2Fa71702f86881d706e3941cc3b7e997a1e121ac876329f23a6aaabbd4644d1f6b.png?alt=media)

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

![](https://1075194167-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7upncbzIm3grJePXaOO9%2Fuploads%2Fgit-blob-31379b39586d9365ca877a2c6d190ce58e1e6413%2F5238c267d546492f58b6881d0a8c6b572bca3d1692d5482d71729ff1c0d2e534.png?alt=media)

| Field                                  | Value                                                                           |
| -------------------------------------- | ------------------------------------------------------------------------------- |
| `Sink name`                            | Any value ( e.g. `neto-flowlogs-sink`)                                          |
| `Sink description`                     | Any value (e.g. Netography Fusion flow log ingest)                              |
| `Sink destination service type`        | `Cloud Pub/Sub topic`                                                           |
| `Sink destination Cloud Pub/Sub topic` | Create a topic or use topic created in previous step                            |
| `Inclusion filter`                     | `resource.type="gce_subnetwork" AND log_id("compute.googleapis.com/vpc_flows")` |

{% hint style="info" %}
If you are using org level configuration, you will need to make an agregated logging sink as well at the org level. Use the inclusion filter of `resource.type="vpc_flow_logs_config" AND log_id("networkmanagement.googleapis.com/vpc_flows")`
{% endhint %}

{% hint style="success" %}
**✅You're done!**
{% endhint %}
