0
votes

We are using Google Pub/Sub in the Google Cloud Platform.

There are many anonymous subscriptions listening to our topics. We don't know how and why they have been created.

Is there a way to find out who (e.g. which program, which host, etc.) has created a subscription?

1
If you keep, or export, your Stackdriver logs, you will find who created the subscriptions and when. The "why" will be unknown. Stackdriver can give you a lot of information. If you enable audit logging even more (review pricing first).John Hanley
@JohnHanley OK, thank you. Do you know where I can find them in the Stackdriver?Bernhard
Kamal just posted the answer about Stackdriver.John Hanley

1 Answers

3
votes

You can look at the activity log for the project to get information about the creation of subscriptions. Under "Resource type" under "Filter," you can choose "Cloud Pub/Sub Subscription":

activity

This will bring up a list of all subscription activity. You can select "Cloud Pub/Sub Topic" to see all topic activity.