Sharing audit logging
This document describes audit logging for BigQuery sharing. Google Cloud servicesgenerate audit logs that record administrative and access activities within your Google Cloud resources.For more information about Cloud Audit Logs, see the following:
- Types of audit logs
- Audit log entry structure
- Storing and routing audit logs
- Cloud Logging pricing summary
- Enable Data Access audit logs
Service name
BigQuery sharing audit logs use the service nameanalyticshub.googleapis.com.Filter for this service:
protoPayload.serviceName="analyticshub.googleapis.com"
Methods by permission type
Each IAM permission has atype property, whose value is an enumthat can be one of four values:ADMIN_READ,ADMIN_WRITE,DATA_READ, orDATA_WRITE. When you call a method,BigQuery sharing generates an audit log whose category is dependent on thetype property of the permission required to perform the method.Methods that require an IAM permission with thetype property valueofDATA_READ,DATA_WRITE, orADMIN_READ generateData Access audit logs.Methods that require an IAM permission with thetype property valueofADMIN_WRITE generateAdmin Activity audit logs.
| Permission type | Methods |
|---|---|
ADMIN_READ | google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.GetDataExchangegoogle.cloud.bigquery.analyticshub.v1.AnalyticsHubService.GetIamPolicygoogle.cloud.bigquery.analyticshub.v1.AnalyticsHubService.GetListinggoogle.cloud.bigquery.analyticshub.v1.AnalyticsHubService.GetSubscriptiongoogle.cloud.bigquery.analyticshub.v1.AnalyticsHubService.ListDataExchangesgoogle.cloud.bigquery.analyticshub.v1.AnalyticsHubService.ListListingsgoogle.cloud.bigquery.analyticshub.v1.AnalyticsHubService.ListOrgDataExchangesgoogle.cloud.bigquery.analyticshub.v1.AnalyticsHubService.ListSharedResourceSubscriptionsgoogle.cloud.bigquery.analyticshub.v1.AnalyticsHubService.ListSubscriptionsgoogle.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.GetDataExchangegoogle.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.GetIamPolicygoogle.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.GetListinggoogle.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.ListDataExchangesgoogle.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.ListListingsgoogle.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.ListOrgDataExchangesgoogle.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.SubscribeListing |
ADMIN_WRITE | google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.CreateDataExchangegoogle.cloud.bigquery.analyticshub.v1.AnalyticsHubService.CreateListinggoogle.cloud.bigquery.analyticshub.v1.AnalyticsHubService.DeleteDataExchangegoogle.cloud.bigquery.analyticshub.v1.AnalyticsHubService.DeleteListinggoogle.cloud.bigquery.analyticshub.v1.AnalyticsHubService.DeleteSubscription (LRO)google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.RefreshSubscription (LRO)google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.RevokeSubscriptiongoogle.cloud.bigquery.analyticshub.v1.AnalyticsHubService.SetIamPolicygoogle.cloud.bigquery.analyticshub.v1.AnalyticsHubService.SubscribeDataExchange (LRO)google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.SubscribeListinggoogle.cloud.bigquery.analyticshub.v1.AnalyticsHubService.UpdateDataExchangegoogle.cloud.bigquery.analyticshub.v1.AnalyticsHubService.UpdateListinggoogle.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.CreateDataExchangegoogle.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.CreateListinggoogle.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.DeleteDataExchangegoogle.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.DeleteListinggoogle.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.SetIamPolicygoogle.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.UpdateDataExchangegoogle.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.UpdateListing |
API interface audit logs
For information about how and which permissions are evaluated for each method,see the Identity and Access Management documentation for BigQuery sharing.
google.cloud.bigquery.analyticshub.v1.AnalyticsHubService
The following audit logs are associated with methods belonging togoogle.cloud.bigquery.analyticshub.v1.AnalyticsHubService.
CreateDataExchange
- Method:
google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.CreateDataExchange - Audit log type:Admin activity
- Permissions:
analyticshub.dataExchanges.create - ADMIN_WRITE
- Method is a long-running or streaming operation:No.
- Filter for this method:
protoPayload.methodName="google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.CreateDataExchange"
CreateListing
- Method:
google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.CreateListing - Audit log type:Admin activity
- Permissions:
analyticshub.listings.create - ADMIN_WRITE
- Method is a long-running or streaming operation:No.
- Filter for this method:
protoPayload.methodName="google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.CreateListing"
DeleteDataExchange
- Method:
google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.DeleteDataExchange - Audit log type:Admin activity
- Permissions:
analyticshub.dataExchanges.delete - ADMIN_WRITE
- Method is a long-running or streaming operation:No.
- Filter for this method:
protoPayload.methodName="google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.DeleteDataExchange"
DeleteListing
- Method:
google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.DeleteListing - Audit log type:Admin activity
- Permissions:
analyticshub.listings.delete - ADMIN_WRITE
- Method is a long-running or streaming operation:No.
- Filter for this method:
protoPayload.methodName="google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.DeleteListing"
DeleteSubscription
- Method:
google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.DeleteSubscription - Audit log type:Admin activity
- Permissions:
analyticshub.subscriptions.delete - ADMIN_WRITE
- Method is a long-running or streaming operation:Long-running operation
- Filter for this method:
protoPayload.methodName="google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.DeleteSubscription"
GetDataExchange
- Method:
google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.GetDataExchange - Audit log type:Data access
- Permissions:
analyticshub.dataExchanges.get - ADMIN_READ
- Method is a long-running or streaming operation:No.
- Filter for this method:
protoPayload.methodName="google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.GetDataExchange"
GetIamPolicy
- Method:
google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.GetIamPolicy - Audit log type:Data access
- Permissions:
analyticshub.dataExchanges.getIamPolicy - ADMIN_READanalyticshub.listings.getIamPolicy - ADMIN_READ
- Method is a long-running or streaming operation:No.
- Filter for this method:
protoPayload.methodName="google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.GetIamPolicy"
GetListing
- Method:
google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.GetListing - Audit log type:Data access
- Permissions:
analyticshub.listings.get - ADMIN_READ
- Method is a long-running or streaming operation:No.
- Filter for this method:
protoPayload.methodName="google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.GetListing"
GetSubscription
- Method:
google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.GetSubscription - Audit log type:Data access
- Permissions:
analyticshub.subscriptions.get - ADMIN_READ
- Method is a long-running or streaming operation:No.
- Filter for this method:
protoPayload.methodName="google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.GetSubscription"
ListDataExchanges
- Method:
google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.ListDataExchanges - Audit log type:Data access
- Permissions:
analyticshub.dataExchanges.list - ADMIN_READ
- Method is a long-running or streaming operation:No.
- Filter for this method:
protoPayload.methodName="google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.ListDataExchanges"
ListListings
- Method:
google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.ListListings - Audit log type:Data access
- Permissions:
analyticshub.listings.list - ADMIN_READ
- Method is a long-running or streaming operation:No.
- Filter for this method:
protoPayload.methodName="google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.ListListings"
ListOrgDataExchanges
- Method:
google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.ListOrgDataExchanges - Audit log type:Data access
- Permissions:
analyticshub.dataExchanges.get - ADMIN_READ
- Method is a long-running or streaming operation:No.
- Filter for this method:
protoPayload.methodName="google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.ListOrgDataExchanges"
ListSharedResourceSubscriptions
- Method:
google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.ListSharedResourceSubscriptions - Audit log type:Data access
- Permissions:
analyticshub.listings.viewSubscriptions - ADMIN_READ
- Method is a long-running or streaming operation:No.
- Filter for this method:
protoPayload.methodName="google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.ListSharedResourceSubscriptions"
ListSubscriptions
- Method:
google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.ListSubscriptions - Audit log type:Data access
- Permissions:
analyticshub.subscriptions.list - ADMIN_READ
- Method is a long-running or streaming operation:No.
- Filter for this method:
protoPayload.methodName="google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.ListSubscriptions"
RefreshSubscription
- Method:
google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.RefreshSubscription - Audit log type:Admin activity
- Permissions:
analyticshub.subscriptions.update - ADMIN_WRITE
- Method is a long-running or streaming operation:Long-running operation
- Filter for this method:
protoPayload.methodName="google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.RefreshSubscription"
RevokeSubscription
- Method:
google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.RevokeSubscription - Audit log type:Admin activity
- Permissions:
analyticshub.dataExchanges.update - ADMIN_WRITEanalyticshub.listings.update - ADMIN_WRITE
- Method is a long-running or streaming operation:No.
- Filter for this method:
protoPayload.methodName="google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.RevokeSubscription"
SetIamPolicy
- Method:
google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.SetIamPolicy - Audit log type:Admin activity
- Permissions:
analyticshub.listings.setIamPolicy - ADMIN_WRITE
- Method is a long-running or streaming operation:No.
- Filter for this method:
protoPayload.methodName="google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.SetIamPolicy"
SubscribeDataExchange
- Method:
google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.SubscribeDataExchange - Audit log type:Admin activity
- Permissions:
analyticshub.subscriptions.create - ADMIN_WRITE
- Method is a long-running or streaming operation:Long-running operation
- Filter for this method:
protoPayload.methodName="google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.SubscribeDataExchange"
SubscribeListing
- Method:
google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.SubscribeListing - Audit log type:Data access
- Permissions:
analyticshub.listings.subscribe - ADMIN_WRITE
- Method is a long-running or streaming operation:No.
- Filter for this method:
protoPayload.methodName="google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.SubscribeListing"
UpdateDataExchange
- Method:
google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.UpdateDataExchange - Audit log type:Admin activity
- Permissions:
analyticshub.dataExchanges.update - ADMIN_WRITE
- Method is a long-running or streaming operation:No.
- Filter for this method:
protoPayload.methodName="google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.UpdateDataExchange"
UpdateListing
- Method:
google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.UpdateListing - Audit log type:Admin activity
- Permissions:
analyticshub.listings.update - ADMIN_WRITE
- Method is a long-running or streaming operation:No.
- Filter for this method:
protoPayload.methodName="google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.UpdateListing"
google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService
The following audit logs are associated with methods belonging togoogle.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.
CreateDataExchange
- Method:
google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.CreateDataExchange - Audit log type:Admin activity
- Permissions:
analyticshub.dataExchanges.create - ADMIN_WRITE
- Method is a long-running or streaming operation:No.
- Filter for this method:
protoPayload.methodName="google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.CreateDataExchange"
CreateListing
- Method:
google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.CreateListing - Audit log type:Admin activity
- Permissions:
analyticshub.listings.create - ADMIN_WRITE
- Method is a long-running or streaming operation:No.
- Filter for this method:
protoPayload.methodName="google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.CreateListing"
DeleteDataExchange
- Method:
google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.DeleteDataExchange - Audit log type:Admin activity
- Permissions:
analyticshub.dataExchanges.delete - ADMIN_WRITE
- Method is a long-running or streaming operation:No.
- Filter for this method:
protoPayload.methodName="google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.DeleteDataExchange"
DeleteListing
- Method:
google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.DeleteListing - Audit log type:Admin activity
- Permissions:
analyticshub.listings.delete - ADMIN_WRITE
- Method is a long-running or streaming operation:No.
- Filter for this method:
protoPayload.methodName="google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.DeleteListing"
GetDataExchange
- Method:
google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.GetDataExchange - Audit log type:Data access
- Permissions:
analyticshub.dataExchanges.get - ADMIN_READ
- Method is a long-running or streaming operation:No.
- Filter for this method:
protoPayload.methodName="google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.GetDataExchange"
GetIamPolicy
- Method:
google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.GetIamPolicy - Audit log type:Data access
- Permissions:
analyticshub.dataExchanges.getIamPolicy - ADMIN_READanalyticshub.listings.getIamPolicy - ADMIN_READ
- Method is a long-running or streaming operation:No.
- Filter for this method:
protoPayload.methodName="google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.GetIamPolicy"
GetListing
- Method:
google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.GetListing - Audit log type:Data access
- Permissions:
analyticshub.listings.get - ADMIN_READ
- Method is a long-running or streaming operation:No.
- Filter for this method:
protoPayload.methodName="google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.GetListing"
ListDataExchanges
- Method:
google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.ListDataExchanges - Audit log type:Data access
- Permissions:
analyticshub.dataExchanges.list - ADMIN_READ
- Method is a long-running or streaming operation:No.
- Filter for this method:
protoPayload.methodName="google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.ListDataExchanges"
ListListings
- Method:
google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.ListListings - Audit log type:Data access
- Permissions:
analyticshub.listings.list - ADMIN_READ
- Method is a long-running or streaming operation:No.
- Filter for this method:
protoPayload.methodName="google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.ListListings"
ListOrgDataExchanges
- Method:
google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.ListOrgDataExchanges - Audit log type:Data access
- Permissions:
analyticshub.dataExchanges.get - ADMIN_READ
- Method is a long-running or streaming operation:No.
- Filter for this method:
protoPayload.methodName="google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.ListOrgDataExchanges"
SetIamPolicy
- Method:
google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.SetIamPolicy - Audit log type:Admin activity
- Permissions:
analyticshub.listings.setIamPolicy - ADMIN_WRITE
- Method is a long-running or streaming operation:No.
- Filter for this method:
protoPayload.methodName="google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.SetIamPolicy"
SubscribeListing
- Method:
google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.SubscribeListing - Audit log type:Data access
- Permissions:
analyticshub.listings.subscribe - ADMIN_READ
- Method is a long-running or streaming operation:No.
- Filter for this method:
protoPayload.methodName="google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.SubscribeListing"
UpdateDataExchange
- Method:
google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.UpdateDataExchange - Audit log type:Admin activity
- Permissions:
analyticshub.dataExchanges.update - ADMIN_WRITE
- Method is a long-running or streaming operation:No.
- Filter for this method:
protoPayload.methodName="google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.UpdateDataExchange"
UpdateListing
- Method:
google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.UpdateListing - Audit log type:Admin activity
- Permissions:
analyticshub.listings.update - ADMIN_WRITE
- Method is a long-running or streaming operation:No.
- Filter for this method:
protoPayload.methodName="google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.UpdateListing"
Methods that don't produce audit logs
A method might not produce audit logs for one or more of the followingreasons:
- It is a high volume method involving significant log generation and storage costs.
- It has low auditing value.
- Another audit or platform log already provides method coverage.
The following methods don't produce audit logs:
google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.TestIamPermissionsgoogle.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.TestIamPermissions
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-12-15 UTC.