I want to export relevant BigQuery (audit) logging to a BQ dataset.
So I have to create a log sink for that.
I found a blog that sets up the BQ logging only using bigquery_project
or bigquery_dataset
:
https://dataform.co/blog/exporting-bigquery-usage-logs
I noticed that there are several more resource.types to query on:
- bigquery_project
- bigquery_resource
- bigquery_dataset
- bigquery_table
- bigquery_dts_config
- bigquery_dts_run
- bigquery_biengine_model
I found that list here:
https://cloud.google.com/logging/docs/api/v2/resource-list#resource-types
So the last three have to do with data transfer and biengine.
But I wonder what is the difference between project
, resource
and dataset
?
What info is in those 3 different kinds of logs? And: which of the three (or which of the seven resource types) should I use?