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:

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.

API methods in the following list that are marked with (LRO) are long-running operations (LROs).These methods usually generate two audit log entries: one when the operation starts andanother when it ends. For more information seeAudit logs for long-running operations.
Permission typeMethods
ADMIN_READgoogle.cloud.bigquery.analyticshub.v1.AnalyticsHubService.GetDataExchange
google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.GetIamPolicy
google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.GetListing
google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.GetSubscription
google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.ListDataExchanges
google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.ListListings
google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.ListOrgDataExchanges
google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.ListSharedResourceSubscriptions
google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.ListSubscriptions
google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.GetDataExchange
google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.GetIamPolicy
google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.GetListing
google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.ListDataExchanges
google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.ListListings
google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.ListOrgDataExchanges
google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.SubscribeListing
ADMIN_WRITEgoogle.cloud.bigquery.analyticshub.v1.AnalyticsHubService.CreateDataExchange
google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.CreateListing
google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.DeleteDataExchange
google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.DeleteListing
google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.DeleteSubscription (LRO)
google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.RefreshSubscription (LRO)
google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.RevokeSubscription
google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.SetIamPolicy
google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.SubscribeDataExchange (LRO)
google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.SubscribeListing
google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.UpdateDataExchange
google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.UpdateListing
google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.CreateDataExchange
google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.CreateListing
google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.DeleteDataExchange
google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.DeleteListing
google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.SetIamPolicy
google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.UpdateDataExchange
google.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_READ
    • analyticshub.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_WRITE
    • 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.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_READ
    • analyticshub.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.TestIamPermissions
  • google.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.