BigQuery source
By default Orbee reads the audit logs in Cloud Logging, where Google keeps them 400 days. The BigQuery source exports them to one partitioned table instead, for a longer retention or SQL.
orbee changes --source bigquery --since 30d # or ORBEE_AUDIT_SOURCE=bigqueryThe org-setup
Terraform module creates the aggregated log sink, the dataset and their read access:
module "orbee" { source = "git::https://github.com/tosun-si/orbee.git//terraform/modules/org-setup?ref=v0.4.0"
project_id = "my-platform-tools" parent_type = "organization" parent_id = "123456789012" reader_members = ["group:platform-team@example.com"] export_audit_logs = true}- Applying it needs
roles/logging.configWriter, the right to grant roles on the organization, and the rights to create a dataset inproject_id. - The table holds the entries from the sink’s creation on, not before.
- A question is one partition-pruned query, bounded by
ORBEE_MAX_BYTES_BILLED. - Readers also need
bigquery.jobs.createon the project andbigquery.tables.getDataon the dataset:orbee doctor --source bigquerychecks them.