Analyze BigQuery activities using audit data
Overview
Google Cloud generates BigQuery audit logs to record relevant administrative activities and accesses. These audit logs provide insight into operational concerns related to your BigQuery usage such as creating or deleting a table, purchasing slots, or running a load job.
The DoiT BigQuery Lens feature sets up a BigQuery audit log sink for widgets displayed on the BigQuery Lens dashboard that simplifies the analysis of BigQuery usage. You can also leverage the audit logs collected by the BigQuery Lens to perform your own analysis in Cloud Analytics reports, using BigQuery Lens as the data source.
Required permission
- Cloud Analytics
Build reports using BigQuery Lens data
To build a report with data from the BigQuery Lens audit log sink:
-
Make sure you have already set up BigQuery Lens.
-
Open a report. Select Change at the top of the left-hand sidebar.
-
Select BigQuery Lens as the data source.
-
You can choose to Create a new report or Update the current one. Note that updating the report will lose all its current configurations.
Metrics and dimensions
Cloud Analytics reports use different sets of metrics and dimensions for billing data and BigQuery audit logs.