gcloud alpha ai-platform jobs stream-logs - show logs from a running AI Platform job
gcloud alpha ai-platform jobs stream-logs JOB [--allow-multiline-logs] [--polling-interval=POLLING_INTERVAL; default=60] [--task-name=TASK_NAME] [GCLOUD_WIDE_FLAG ...]
(ALPHA) Show logs from a running AI Platform job.
To show the logs from running the AI Platform job my-job, run:
$ gcloud alpha ai-platform jobs stream-logs my-job
- JOB
Name of the job.
- --allow-multiline-logs
Output multiline log messages as single records.
- --polling-interval=POLLING_INTERVAL; default=60
Number of seconds to wait between efforts to fetch the latest log messages. Overrides the default ml_engine/polling_interval property value for this command invocation.
- --task-name=TASK_NAME
If set, display only the logs for this particular task.
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 help for details.
This command is currently in alpha and might change without notice. If this command fails with API permission errors despite specifying the correct project, you might be trying to access an API with an invitation-only early access allowlist. These variants are also available:
$ gcloud ai-platform jobs stream-logs
$ gcloud beta ai-platform jobs stream-logs