Ensure that usage and storage logs are enabled for your Google Cloud Storage buckets in order to collect valuable insights into buckets activity, helping monitor access patterns, track costs, detect suspicious behavior, and ensure compliance with security and audit requirements.
optimisation
efficiency
excellence
Google Cloud Storage service generates usage and storage logs as downloadable CSV files. Usage logs capture details of all requests made to a specified bucket and are created hourly, while storage logs summarize the bucket's storage consumption for the previous day and are generated daily. Once enable and configured, both usage and storage logs are automatically created and stored as objects in a designated bucket.
Audit
To determine if usage and storage logs are enabled for your Google Cloud Storage buckets, perform the following operations:
Getting the usage and storage log configuration for Cloud Storage buckets is not currently suported by Google Cloud Platform (GCP) console.Remediation / Resolution
To enable and configure usage and storage logs for your Google Cloud Storage buckets, perform the following operations:
Enabling usage and storage logs for Cloud Storage buckets is not currently suported by Google Cloud Platform (GCP) console.References
- Google Cloud Platform (GCP) Documentation
- Monitoring
- Usage logs & storage logs
- GCP Command Line Interface (CLI) Documentation
- gcloud projects list
- gcloud storage buckets list
- gcloud storage buckets describe
- gcloud storage buckets update
- gcloud storage buckets add-iam-policy-binding