> ## Documentation Index
> Fetch the complete documentation index at: https://docs.levelblue.com/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](pub-sub-templates)
* [Manually Create a Cloud Pub/Sub Topic for Your GCP Sensor](manually-create-topic)
* [Manually Create and Configure an Export Sink for Your GCP Sensor](manually-create-sink)

<Danger>
  **Warning:** You must have the Cloud Pub/Sub API enabled before beginning these steps
</Danger>
