mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-19 07:15:23 +00:00
gcloud: Tue Mar 1 04:29:52 UTC 2022
This commit is contained in:
parent
aab53307a8
commit
1456dab6c7
9791 changed files with 814712 additions and 0 deletions
72
gcloud/app/logs/read
Normal file
72
gcloud/app/logs/read
Normal file
|
|
@ -0,0 +1,72 @@
|
|||
NAME
|
||||
gcloud app logs read - reads log entries for the current App Engine app
|
||||
|
||||
SYNOPSIS
|
||||
gcloud app logs read [--level=LEVEL; default="any"]
|
||||
[--limit=LIMIT; default=200]
|
||||
[--logs=APP_LOG,[APP_LOG,...];
|
||||
default="stderr,stdout,crash.log,nginx.request,request_log"]
|
||||
[--service=SERVICE, -s SERVICE] [--version=VERSION, -v VERSION]
|
||||
[GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
DESCRIPTION
|
||||
Display the latest log entries from stdout, stderr and crash log for the
|
||||
current Google App Engine app in a human readable format. This command
|
||||
requires that the caller have the logging.logEntries.list permission.
|
||||
|
||||
EXAMPLES
|
||||
To display the latest entries for the current app, run:
|
||||
|
||||
$ gcloud app logs read
|
||||
|
||||
To show only the entries with severity at warning or higher, run:
|
||||
|
||||
$ gcloud app logs read --level=warning
|
||||
|
||||
To show only the entries with a specific version, run:
|
||||
|
||||
$ gcloud app logs read --version=v1
|
||||
|
||||
To show only the 10 latest log entries for the default service, run:
|
||||
|
||||
$ gcloud app logs read --limit=10 --service=default
|
||||
|
||||
To show only the logs from the request log for standard apps, run:
|
||||
|
||||
$ gcloud app logs read --logs=request_log
|
||||
|
||||
To show only the logs from the request log for Flex apps, run:
|
||||
|
||||
$ gcloud app logs read --logs=nginx.request
|
||||
|
||||
FLAGS
|
||||
--level=LEVEL; default="any"
|
||||
Filter entries with severity equal to or higher than a given level.
|
||||
LEVEL must be one of: critical, error, warning, info, debug, any.
|
||||
|
||||
--limit=LIMIT; default=200
|
||||
Number of log entries to show.
|
||||
|
||||
--logs=APP_LOG,[APP_LOG,...]; default="stderr,stdout,crash.log,nginx.request,request_log"
|
||||
Filter entries from a particular set of logs. Must be a comma-separated
|
||||
list of log names (request_log, stdout, stderr, etc).
|
||||
|
||||
--service=SERVICE, -s SERVICE
|
||||
Limit to specific service.
|
||||
|
||||
--version=VERSION, -v VERSION
|
||||
Limit to specific version.
|
||||
|
||||
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 variant is also available:
|
||||
|
||||
$ gcloud beta app logs read
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue