easygcloud
Create a Cloud Logging sink to export audit logs to Cloud Storage
command
gcloud logging sinks create audit-export storage.googleapis.com/compliance-logs-bucket --log-filter='logName:cloudaudit.googleapis.com'command
gcloud logging sinks create audit-export storage.googleapis.com/compliance-logs-bucket --log-filter='logName:cloudaudit.googleapis.com'Part of the Google Cloud CLI (gcloud) — Operations category.
| Flag | Purpose |
|---|---|
--log-filter | Set to: 'logName:cloudaudit.googleapis.com' |
Test your recall — not just your reading.
Practice with interactive quiz →