gcloud logging recent-queries adds list command
Introduced 2026-04-28 · score 0.91
HOW TO USE IT
To list Cloud Logging recent queries, run `gcloud logging recent-queries list` with a location and one parent resource.
gcloud logging recent-queries list --project=<PROJECT_ID> --location=globalWHY THIS HELPS
List recent queries in Cloud Logging.
REQUIREMENTS AND LIMITATIONS
- --location (required): Location of the recent queries to list.
- --project (required): Project that owns the recent queries. At most one of `--project`, `--billing-account`, `--folder`, or `--organization` may be specified.
- --billing-account: Billing account parent for the recent queries; mutually exclusive with `--project`, `--folder`, and `--organization`.
- --folder: Folder parent for the recent queries; mutually exclusive with `--project`, `--billing-account`, and `--organization`.
- --organization: Organization parent for the recent queries; mutually exclusive with `--project`, `--billing-account`, and `--folder`.
- Prerequisite: The caller needs the `logging.queries.list` permission on the parent resource.
- Prerequisite: The API requires one of the OAuth scopes `logging.read`, `logging.admin`, `cloud-platform.read-only`, or `cloud-platform`.
FIRST-PARTY EVIDENCE
- https://docs.cloud.google.com/sdk/docs/release-notes#56600_2026-04-28
- https://docs.cloud.google.com/sdk/gcloud/reference/logging/recent-queries/list
- https://cloud.google.com/logging/docs/reference/v2/rest/v2/billingAccounts.locations.recentQueries/list
Check the installed version and the source before using it. Entry JSON