mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-16 20:36:39 +00:00
gcloud: Wed Mar 5 10:41:25 UTC 2025
This commit is contained in:
parent
a597993b2e
commit
6dc93282df
279 changed files with 4198 additions and 801 deletions
38
gcloud/alpha/run/worker-pools/logs/help
Normal file
38
gcloud/alpha/run/worker-pools/logs/help
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
NAME
|
||||
gcloud alpha run worker-pools logs - read logs for Cloud Run worker pools
|
||||
|
||||
SYNOPSIS
|
||||
gcloud alpha run worker-pools logs COMMAND [GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
DESCRIPTION
|
||||
(ALPHA) Read logs for Cloud Run worker pools.
|
||||
|
||||
EXAMPLES
|
||||
To tail logs for a worker pool, run:
|
||||
|
||||
$ gcloud alpha run worker-pools logs tail my-worker-pool
|
||||
|
||||
To read logs for a worker pool, run:
|
||||
|
||||
$ gcloud alpha run worker-pools logs read my-worker-pool
|
||||
|
||||
GCLOUD WIDE FLAGS
|
||||
These flags are available to all commands: --help.
|
||||
|
||||
Run $ gcloud help for details.
|
||||
|
||||
COMMANDS
|
||||
COMMAND is one of the following:
|
||||
|
||||
read
|
||||
(ALPHA) Read logs for a Cloud Run worker pool.
|
||||
|
||||
tail
|
||||
(ALPHA) Tail logs for a Cloud Run worker pool.
|
||||
|
||||
NOTES
|
||||
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.
|
||||
|
||||
79
gcloud/alpha/run/worker-pools/logs/read
Normal file
79
gcloud/alpha/run/worker-pools/logs/read
Normal file
|
|
@ -0,0 +1,79 @@
|
|||
NAME
|
||||
gcloud alpha run worker-pools logs read - read logs for a Cloud Run worker
|
||||
pool
|
||||
|
||||
SYNOPSIS
|
||||
gcloud alpha run worker-pools logs read WORKER_POOL
|
||||
[--freshness=FRESHNESS; default="1d"] [--log-filter=LOG_FILTER]
|
||||
[--order=ORDER; default="desc"] [--limit=LIMIT] [GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
DESCRIPTION
|
||||
(ALPHA) gcloud alpha run worker-pools logs read reads log entries. Log
|
||||
entries matching --log-filter are returned according to the specified
|
||||
--order. If the log entries come from multiple logs, then entries from
|
||||
different logs might be intermingled in the results.
|
||||
|
||||
EXAMPLES
|
||||
To read log entries from for a Cloud Run Worker Pool, run:
|
||||
|
||||
$ gcloud alpha run worker-pools logs read my-worker-pool
|
||||
|
||||
To read log entries with severity ERROR or higher, run:
|
||||
|
||||
$ gcloud alpha run worker-pools logs read my-worker-pool \
|
||||
--log-filter="severity>=ERROR"
|
||||
|
||||
To read log entries written in a specific time window, run:
|
||||
|
||||
$ gcloud alpha run worker-pools logs read my-worker-pool \
|
||||
--log-filter='timestamp<="2015-05-31T23:59:59Z" AND
|
||||
timestamp>="2015-05-31T00:00:00Z"'
|
||||
|
||||
To read up to 10 log entries in your worker pool payloads that include the
|
||||
word SearchText and format the output in JSON format, run:
|
||||
|
||||
$ gcloud alpha run worker-pools logs read my-worker-pool \
|
||||
--log-filter="textPayload:SearchText" --limit=10 --format=json
|
||||
|
||||
Detailed information about filters can be found at:
|
||||
https://cloud.google.com/logging/docs/view/advanced_filters
|
||||
|
||||
POSITIONAL ARGUMENTS
|
||||
WORKER_POOL
|
||||
Name for a Cloud Run worker pool.
|
||||
|
||||
FLAGS
|
||||
--freshness=FRESHNESS; default="1d"
|
||||
Return entries that are not older than this value. Works only with DESC
|
||||
ordering and filters without a timestamp. See $ gcloud topic datetimes
|
||||
for information on duration formats.
|
||||
|
||||
--log-filter=LOG_FILTER
|
||||
Filter expression that specifies the log entries to return. Detailed
|
||||
information about filters can be found at:
|
||||
https://cloud.google.com/logging/docs/view/logging-query-language
|
||||
|
||||
--order=ORDER; default="desc"
|
||||
Ordering of returned log entries based on timestamp field. ORDER must
|
||||
be one of: desc, asc.
|
||||
|
||||
LIST COMMAND FLAGS
|
||||
--limit=LIMIT
|
||||
Maximum number of resources to list. The default is unlimited. This
|
||||
flag 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 help for details.
|
||||
|
||||
NOTES
|
||||
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.
|
||||
|
||||
50
gcloud/alpha/run/worker-pools/logs/tail
Normal file
50
gcloud/alpha/run/worker-pools/logs/tail
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
NAME
|
||||
gcloud alpha run worker-pools logs tail - tail logs for a Cloud Run worker
|
||||
pool
|
||||
|
||||
SYNOPSIS
|
||||
gcloud alpha run worker-pools logs tail WORKER_POOL
|
||||
[--log-filter=LOG_FILTER] [GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
DESCRIPTION
|
||||
(ALPHA) gcloud alpha run worker-pools logs tail tails log-entries for a
|
||||
particular Cloud Run worker pool in real time. The log entries are
|
||||
formatted for consumption in a terminal.
|
||||
|
||||
EXAMPLES
|
||||
To tail log entries for a Cloud Run Worker Pool, run:
|
||||
|
||||
$ gcloud alpha run worker-pools logs tail my-worker-pool
|
||||
|
||||
To tail log entries with severity ERROR or higher, run:
|
||||
|
||||
$ gcloud alpha run worker-pools logs tail my-worker-pool \
|
||||
--log-filter="severity>=ERROR"
|
||||
|
||||
Detailed information about filters can be found at:
|
||||
https://cloud.google.com/logging/docs/view/advanced_filters
|
||||
|
||||
POSITIONAL ARGUMENTS
|
||||
WORKER_POOL
|
||||
Name for a Cloud Run worker pool.
|
||||
|
||||
FLAGS
|
||||
--log-filter=LOG_FILTER
|
||||
Filter expression that specifies the log entries to return. Detailed
|
||||
information about filters can be found at:
|
||||
https://cloud.google.com/logging/docs/view/logging-query-language
|
||||
|
||||
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 help for details.
|
||||
|
||||
NOTES
|
||||
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.
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue