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
- Log in to your GCP environment and go to the Topics page under Pub/Sub.
-
Click Create Topic.
- Give this topic a name.
Note: Make note of this name, as you will need to reference it when creating your export sinks.
- Click Create Topic.
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.
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
- Log in to your GCP environment and go to the Topics page under Pub/Sub.
- Click the Topic ID from which you want to create the subscription to open the specific page of that Topic ID.
-
Go down the page and click Create Subscription.
- Click Create Subscription.
- Name your subscription using the Subscription ID field.
Note: This is the name that will appear in the user interface (UI) of your GCP Sensor under the Log Subscriptions tab.
- Click Create.
- Click Enable to enable the subscription.
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.