Google Cloud CLI (gcloud) · Storage, secrets and logs
Read logs
Query the most recent error log entries.
gcloud logging read "severity>=ERROR" --limit 20 --format json
Official Google Cloud CLI (gcloud) documentation
More storage, secrets and logs commands
- List buckets or objects
- Copy files to or from a bucket
- Sync a folder with a bucket
- Read a secret
- Store a secret
- List Cloud SQL instances
All storage, secrets and logs commands · Google Cloud CLI (gcloud) cheatsheet