> ## Documentation Index
> Fetch the complete documentation index at: https://levelblue-final.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# GCP Log Discovery and Collection in USM Anywhere

The Google Cloud Platform (GCP) Sensor uses the Google Cloud Pub/Sub to power asynchronous log collection. Cloud Pub/Sub operates based on an export/subscribe model wherein your environment's logs are exported to one or more topics via export sinks. Your GCP Sensor pulls and processes these logs from the enabled Cloud Pub/Sub subscriptions. See the [Google Cloud Pub/Sub documentation](https://cloud.google.com/pubsub/) for more information.

To enable log collection, you can do the following:

* [Configure Log Collection for Your GCP Sensor Using Templates](https://levelblue-final.mintlify.site/documentation/usm-anywhere/deployment-guide/gcp/pub-sub-templates.md)
* [Manually Create a Cloud Pub/Sub Topic for Your GCP Sensor](https://levelblue-final.mintlify.site/documentation/usm-anywhere/deployment-guide/gcp/manually-create-topic.md)
* [Manually Create and Configure an Export Sink for Your GCP Sensor](https://levelblue-final.mintlify.site/documentation/usm-anywhere/deployment-guide/gcp/manually-create-sink.md)

> [!CAUTION]
>
> **Warning:** You must have the Cloud Pub/Sub API enabled before beginning these steps
