Pub/Sub is an asynchronous and scalable messaging service that decouples services producing messages from services processing those messages. For more details, refer to the GCP documentation.
Log and metric types
You can collect the logs and metrics for Sumo Logic's Google Cloud PubSub integration by following the below steps.
Configure logs collection
- Collect Audit Logs using the Google Cloud Platform source. These Audit Logs can be accessed based on the permissions and roles. To enable logging for Google PubSub, refer to Google documentation. For more detail on PubSub operations being audited, refer to audited operations. While creating the sync in GCP, as part of the Choose logs to include in sink section, you can use the following query:
(resource.type=(pubsub_snapshot OR pubsub_subscription OR pubsub_topic))