LinuxCommandLibrary

gcloud-logging-logs-list

list available logs in Cloud Logging

TLDR

List logs

$ gcloud logging logs list
copy
List with limit
$ gcloud logging logs list --limit [10]
copy
List in specific project
$ gcloud logging logs list --project [project_id]
copy
List in JSON format
$ gcloud logging logs list --format json
copy

SYNOPSIS

gcloud logging logs list [options]

DESCRIPTION

gcloud logging logs list displays all log streams available in a Google Cloud project's Cloud Logging service. Each log name represents a distinct stream of log entries, typically corresponding to a specific service, application, or resource.
Logs are created automatically when services write entries to them. Common log names include those from Compute Engine instances, App Engine applications, Kubernetes clusters, and other GCP services. User applications can also write to custom logs.
This command is useful for discovering what logs are available before reading their contents with other logging commands. The output helps identify the correct log name to use when querying or tailing specific application or service logs.

PARAMETERS

--limit num

Maximum results.
--project id
Project ID.
--format format
Output format.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community