gcloud alpha dataflow logs list Stay organized with collections Save and categorize content based on your preferences.
- NAME
- gcloud alpha dataflow logs list - retrieve the job logs for a specific job
- SYNOPSIS
gcloud alpha dataflow logs listJOB_ID[--after=AFTER][--before=BEFORE][--importance=IMPORTANCE; default="warning"][--region=REGION_ID][--filter=EXPRESSION][--limit=LIMIT][GCLOUD_WIDE_FLAG …]
- DESCRIPTION
(ALPHA)Retrieves the job logs from a specified job using theDataflow Messages API with at least the specified importance level. Can also beused to display logs between a given time period using the --before and --afterflags. These logs are produced by the service and are distinct from worker logs.Worker logs can be found in Cloud Logging.- EXAMPLES
- Retrieve only error logs:
gcloudalphadataflowlogslist--importance=errorRetrieve all logs after some date:
gcloudalphadataflowlogslist--after="2016-08-12 00:00:00"Retrieve logs from this year:
gcloudalphadataflowlogslist--after=2018-01-01Retrieve logs more than a week old:
gcloudalphadataflowlogslist--before=-P1W - POSITIONAL ARGUMENTS
JOB_ID- Job ID to operate on.
- FLAGS
--after=AFTER- Only display messages logged after the given time. See $gcloud topic datetimes forinformation on time formats. For example,
2018-01-01is the firstday of the year, and-P2Wis 2 weeks ago. --before=BEFORE- Only display messages logged before the given time. See $gcloud topic datetimes forinformation on time formats.
--importance=IMPORTANCE; default="warning"- Minimum importance a message must have to be displayed.
IMPORTANCEmust be one of:debug,detailed,warning,error. --region=REGION_ID- Region ID of the job's regional endpoint. Defaults to 'us-central1'.
- LIST COMMAND FLAGS
--filter=EXPRESSION- Apply a Boolean filter
EXPRESSIONto each resource itemto be listed. If the expression evaluatesTrue, then that item islisted. For more details and examples of filter expressions, run $gcloud topic filters. This flaginteracts with other flags that are applied in this order:--flatten,--sort-by,--filter,--limit. --limit=LIMIT- Maximum number of resources to list. The default is
unlimited. Thisflag interacts with other flags that are applied in this order:--flatten,--sort-by,--filter,--limit.
- GCLOUD WIDE FLAGS
- These flags are available to all commands:
--access-token-file,--account,--billing-project,--configuration,--flags-file,--flatten,--format,--help,--impersonate-service-account,--log-http,--project,--quiet,--trace-token,--user-output-enabled,--verbosity.Run
$gcloud helpfor details. - NOTES
- This command is currently in alpha and might change without notice. If thiscommand fails with API permission errors despite specifying the correct project,you might be trying to access an API with an invitation-only early accessallowlist. This variant is also available:
gcloudbetadataflowlogslist
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-07 UTC.