BigQuery Data Policy audit logging

This document describes audit logging for BigQuery Data Policy. Google Cloud services generate 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 Data Policy audit logs use the service name bigquerydatapolicy.googleapis.com. Filter for this service:

    protoPayload.serviceName="bigquerydatapolicy.googleapis.com"
  

Methods by permission type

Each IAM permission has a type property, whose value is an enum that can be one of four values: ADMIN_READ, ADMIN_WRITE, DATA_READ, or DATA_WRITE. When you call a method, BigQuery Data Policy generates an audit log whose category is dependent on the type property of the permission required to perform the method. Methods that require an IAM permission with the type property value of DATA_READ, DATA_WRITE, or ADMIN_READ generate Data Access audit logs. Methods that require an IAM permission with the type property value of ADMIN_WRITE generate Admin Activity audit logs.

Permission type Methods
ADMIN_READ google.cloud.bigquery.datapolicies.v1.DataPolicyService.GetDataPolicy
google.cloud.bigquery.datapolicies.v1.DataPolicyService.GetIamPolicy
google.cloud.bigquery.datapolicies.v1.DataPolicyService.ListDataPolicies
google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.GetDataPolicy
google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.GetIamPolicy
google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.ListDataPolicies
ADMIN_WRITE google.cloud.bigquery.datapolicies.v1.DataPolicyService.CreateDataPolicy
google.cloud.bigquery.datapolicies.v1.DataPolicyService.DeleteDataPolicy
google.cloud.bigquery.datapolicies.v1.DataPolicyService.RenameDataPolicy
google.cloud.bigquery.datapolicies.v1.DataPolicyService.SetIamPolicy
google.cloud.bigquery.datapolicies.v1.DataPolicyService.UpdateDataPolicy
google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.CreateDataPolicy
google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.DeleteDataPolicy
google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.SetIamPolicy
google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.UpdateDataPolicy

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 Data Policy.

google.cloud.bigquery.datapolicies.v1.DataPolicyService

The following audit logs are associated with methods belonging to google.cloud.bigquery.datapolicies.v1.DataPolicyService.

CreateDataPolicy

  • Method: google.cloud.bigquery.datapolicies.v1.DataPolicyService.CreateDataPolicy
  • Audit log type: Admin activity
  • Permissions:
    • bigquery.dataPolicies.create - ADMIN_WRITE
    • datacatalog.taxonomies.get - ADMIN_READ
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="google.cloud.bigquery.datapolicies.v1.DataPolicyService.CreateDataPolicy"

DeleteDataPolicy

  • Method: google.cloud.bigquery.datapolicies.v1.DataPolicyService.DeleteDataPolicy
  • Audit log type: Admin activity
  • Permissions:
    • bigquery.dataPolicies.delete - ADMIN_WRITE
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="google.cloud.bigquery.datapolicies.v1.DataPolicyService.DeleteDataPolicy"

GetDataPolicy

  • Method: google.cloud.bigquery.datapolicies.v1.DataPolicyService.GetDataPolicy
  • Audit log type: Data access
  • Permissions:
    • bigquery.dataPolicies.get - ADMIN_READ
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="google.cloud.bigquery.datapolicies.v1.DataPolicyService.GetDataPolicy"

GetIamPolicy

  • Method: google.cloud.bigquery.datapolicies.v1.DataPolicyService.GetIamPolicy
  • Audit log type: Data access
  • Permissions:
    • bigquery.dataPolicies.getIamPolicy - ADMIN_READ
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="google.cloud.bigquery.datapolicies.v1.DataPolicyService.GetIamPolicy"

ListDataPolicies

  • Method: google.cloud.bigquery.datapolicies.v1.DataPolicyService.ListDataPolicies
  • Audit log type: Data access
  • Permissions:
    • bigquery.dataPolicies.list - ADMIN_READ
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="google.cloud.bigquery.datapolicies.v1.DataPolicyService.ListDataPolicies"

RenameDataPolicy

  • Method: google.cloud.bigquery.datapolicies.v1.DataPolicyService.RenameDataPolicy
  • Audit log type: Admin activity
  • Permissions:
    • bigquery.dataPolicies.update - ADMIN_WRITE
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="google.cloud.bigquery.datapolicies.v1.DataPolicyService.RenameDataPolicy"

SetIamPolicy

  • Method: google.cloud.bigquery.datapolicies.v1.DataPolicyService.SetIamPolicy
  • Audit log type: Admin activity
  • Permissions:
    • bigquery.dataPolicies.setIamPolicy - ADMIN_WRITE
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="google.cloud.bigquery.datapolicies.v1.DataPolicyService.SetIamPolicy"

UpdateDataPolicy

  • Method: google.cloud.bigquery.datapolicies.v1.DataPolicyService.UpdateDataPolicy
  • Audit log type: Admin activity
  • Permissions:
    • bigquery.dataPolicies.update - ADMIN_WRITE
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="google.cloud.bigquery.datapolicies.v1.DataPolicyService.UpdateDataPolicy"

google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService

The following audit logs are associated with methods belonging to google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.

CreateDataPolicy

  • Method: google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.CreateDataPolicy
  • Audit log type: Admin activity
  • Permissions:
    • bigquery.dataPolicies.create - ADMIN_WRITE
    • datacatalog.taxonomies.get - ADMIN_READ
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.CreateDataPolicy"

DeleteDataPolicy

  • Method: google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.DeleteDataPolicy
  • Audit log type: Admin activity
  • Permissions:
    • bigquery.dataPolicies.delete - ADMIN_WRITE
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.DeleteDataPolicy"

GetDataPolicy

  • Method: google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.GetDataPolicy
  • Audit log type: Data access
  • Permissions:
    • bigquery.dataPolicies.get - ADMIN_READ
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.GetDataPolicy"

GetIamPolicy

  • Method: google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.GetIamPolicy
  • Audit log type: Data access
  • Permissions:
    • bigquery.dataPolicies.getIamPolicy - ADMIN_READ
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.GetIamPolicy"

ListDataPolicies

  • Method: google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.ListDataPolicies
  • Audit log type: Data access
  • Permissions:
    • bigquery.dataPolicies.list - ADMIN_READ
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.ListDataPolicies"

SetIamPolicy

  • Method: google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.SetIamPolicy
  • Audit log type: Admin activity
  • Permissions:
    • bigquery.dataPolicies.setIamPolicy - ADMIN_WRITE
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.SetIamPolicy"

UpdateDataPolicy

  • Method: google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.UpdateDataPolicy
  • Audit log type: Admin activity
  • Permissions:
    • bigquery.dataPolicies.update - ADMIN_WRITE
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.UpdateDataPolicy"

Methods that don't produce audit logs

A method might not produce audit logs for one or more of the following reasons:

  • It is a high volume method involving signifcant 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.datapolicies.v1.DataPolicyService.TestIamPermissions
  • google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.TestIamPermissions