Manually Create a Cloud Pub/Sub Topic for Your GCP Sensor

Role Availability Read-Only Investigator Analyst Manager

In Google Cloud Pub/Sub, a topic receives the logs your Google Cloud Platform (GCP) environment exports. Your GCP Sensor then retrieves those logs via subscriptions. Depending on the needs of your particular implementation, you may only need to create a single topic to receive all of your exported logs from all of the export sinks you configure. However, you may find that it would be advantageous for your implementation to include multiple topics, in which case any number of topics are supported.

To create a Cloud Pub/Sub topic

  1. Log in to your GCP environment and go to the Topics page under Pub/Sub.
  2. Click Create Topic.

    Google Cloud Platform

  3. Give this topic a name.
  4. Note: Make note of this name, as you will need to reference it when creating your export sinks.

    By default, the Add a default subscription checkbox is selected. The subscription for this topic will be automatically created using the default settings. Its name is [topic]-sub (for example, MyTopic-sub).

    If you leave this checkbox deselected, you will need to create a subscription. See To create a subscription for a Cloud Pub/Sub topic for more information.

  1. Click Create Topic.

Important: While your subscription is visible at this point, it will not begin reporting events until you have configured at least one export sink to publish to this topic. See Manually Create and Configure an Export Sink for Your GCP Sensor for more information.

To create a subscription for a Cloud Pub/Sub topic

  1. Log in to your GCP environment and go to the Topics page under Pub/Sub.
  2. Click the Topic ID from which you want to create the subscription to open the specific page of that Topic ID.
  3. Go down the page and click Create Subscription.

    Google Coud Platform

  4. Click Create Subscription.
  5. Name your subscription using the Subscription ID field.
  6. Note: This is the name that will appear in the user interface (UI) of your GCP Sensor under the Log Subscriptions tab.

  1. Click Create.
  2. At this point, you may go to the Sensor Details within your USM Anywhere Sensor and review the Log Subscriptions tab to verify that this subscription appears as expected.

  3. Click Enable to enable the subscription.