gcloud app logs read Stay organized with collections Save and categorize content based on your preferences.
- NAME
- gcloud app logs read - reads log entries for the current App Engine app
- SYNOPSIS
- DESCRIPTION
- Display the latest log entries from stdout, stderr and crash log for the currentGoogle App Engine app in a human readable format. This command requires that thecaller have the logging.logEntries.list permission.
- EXAMPLES
- To display the latest entries for the current app, run:
gcloudapplogsreadTo show only the entries with severity at
warningor higher, run:gcloudapplogsread--level=warningTo show only the entries with a specific version, run:
gcloudapplogsread--version=v1To show only the 10 latest log entries for the default service, run:
gcloudapplogsread--limit=10--service=defaultTo show only the logs from the request log for standard apps, run:
gcloudapplogsread--logs=request_logTo show only the logs from the request log for Flex apps, run:
gcloudapplogsread--logs=nginx.request - FLAGS
--level=LEVEL; default="any"- Filter entries with severity equal to or higher than a given level.
LEVELmust 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 oflog names (request_log, stdout, stderr, etc).
--service=SERVICE,-sSERVICE- Limit to specific service.
--version=VERSION,-vVERSION- 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 helpfor details. - NOTES
- This variant is also available:
gcloudbetaapplogsread
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-13 UTC.