Audit Logging - GCP Pub/Sub
Prerequisites
Before configuring the Audit log sink, complete the following steps in Google Cloud:
- Create a Pub/Sub topic and make a note of its topic name, for example, "test- auditlog".
- Set up a service account in the same project in Google Cloud that trusts the Temporal internal service account to let Temporal write information to your Google Cloud account.
Create an Audit Log sink
- In the Temporal Cloud UI, select Settings.
- On the Settings page, select Audit Logging.
- In the Audit Logging card, select Set Up Audit Log Integration.
- On the Set Up Audit Logs Integration page, select Pub/Sub.
- In the Service account email field, enter the service account email you created in the prerequisites.
- In the Topic name field, enter the topic name of the Pub/Sub topic you created in the prerequisites.
- There are two ways to configure the service account to write to the GCS sink. Select Manual to configure the account manually, or Deploy with Terraform to use Terraform.
- Follow the instructions in the Temporal Cloud UI for the method you chose.
- Click Create to configure the audit log. This may take a few minutes.
More information
For more details, see the documentation on audit logging.