For the complete documentation index, see llms.txt. Markdown versions are available by appending .md to documentation URLs.

Create a GCP Pub/Sub Topic and Subscription for SigNoz Logs

SigNoz Cloud - This page applies to SigNoz Cloud editions.
Self-Host - This page applies to self-hosted SigNoz editions.

Overview

The GCP logging guides route logs to a Pub/Sub topic, and the OpenTelemetry Collector reads them from a subscription on that topic. This page creates the topic and its pull subscription, in the Google Cloud console or with the gcloud CLI.

Prerequisites

  • A Google Cloud project, and permission to create Pub/Sub topics and subscriptions in it, for example the Pub/Sub Editor role.
  • The Pub/Sub API turned on in the project. To turn it on yourself, as in Step 1 of the CLI tab, you also need the serviceusage.services.enable permission, for example from the Service Usage Admin role. Otherwise, ask a project admin to turn it on.
  • For the CLI: the gcloud CLI, signed in to the project.

Create the Pub/Sub Topic

Step 1. Open Pub/Sub

In the Google Cloud console, search for Pub/Sub, open it, and click CREATE TOPIC.

Navigate to Pub/Sub
Navigate to Pub/Sub

Step 2. Create the topic

Enter a topic ID, and select Add a default subscription. Under Encryption, keep Google-managed encryption key. Click Create.

Create Pub/Sub Topic
Create Pub/Sub Topic

The console opens the page of the new topic. The default subscription is named <topic-name>-sub.

Validate

Make sure that the topic has the subscription:

  • In the console, the topic page lists <topic-name>-sub under Subscriptions.
  • With the CLI, run the command below. The output lists projects/<project-id>/subscriptions/<topic-name>-sub.
gcloud pubsub topics list-subscriptions <topic-name> --project=<project-id>
Created Pub/Sub Topic
Created Pub/Sub Topic

Next Steps

Route the logs of a GCP service to the topic, for example Cloud Run, Compute Engine, or Cloud Storage.

Get Help

If you need help with the steps in this topic, please reach out to us on SigNoz Community Slack. If you are a SigNoz Cloud user, please use in product chat support located at the bottom right corner of your SigNoz instance or contact us at cloud-support@signoz.io.

Is this page helpful

Last updated—November 20, 2026