Logs List
List available log names in the project.
Purpose
Discovery of which logs are available to help refine search filters.
Inputs
- •
project(optional): The Google Cloud project ID to list logs from. - •
bucket(optional): List logs in a specific log bucket. - •
view(optional): List logs in a specific log view.
Behavior
- •Execute
gcloud logging logs list --project=[PROJECT] --format=json. - •If
projectis not provided, use the active project fromgcp-context. - •If
bucketorviewis provided, append the respective flags. - •Optionally filter for specific log types if needed by the caller.
Output
Returns a JSON list of log names.