Google App Engine Logs

This page summarizes the logs available in Stackdriver Logging from Google App Engine. For more information about App Engine logging, see Using Cloud logging in App Engine apps.

Audit Logs

App Engine writes Admin Activity audit logs, cloudaudit.googleapis.com/activity, called activity in the Logs Viewer.

Standard environment logs

The Google App Engine standard environment produces the following logs:

  • Request logs, appengine.googleapis.com/request_log, called request_log in the Logs viewer. This log records requests sent to all App Engine apps. The request log is provided by default and you cannot opt out of receiving it. For more details, see the RequestLog type.

  • Application logs consist of additional application information included in the request logs. The information is provided by default and you cannot opt out of receiving it. For more details, see the LogLine type.

  • Third party package logs. Some third-party package logs are also produced, including appengine.googleapis.com/nginx.request, called nginx.request in the Logs Viewer.

Log entries from App Engine use the resource type gae_app.

Request log field labels

For the App Engine standard environment request log, the following predefined names can be used as Logs Viewer field labels. All fields contain string values except for status and bytes.

Field name Contents
bytes The number of bytes in the response to the client. Example: 138.
method The HTTP method. Example: GET.
path The path appended to your host's address. Example: /service/local.
protocol The protocol used. Example: HTTP/1.1.
querystring The query string on the request, if any. Example: ?copies=3.
remotehost The host making the request. Example: 192.168.100.1.
request_id The RFC1413 client ID.
status The numeric status code returned to the client: Example: 200.
user An authorized user, if any.
useragent The browser or other agent making the requests. Example: Stackdriver_terminus_bot.

App Engine flexible environment logs

The Google App Engine flexible environment produces the following logs:

  • Request logs record requests sent to all App Engine apps. The request log is provided by default and you cannot opt out of receiving it.

  • Application logs record activity by software within the App Engine app. The log is provided by default and you cannot opt out of receiving it.

  • Runtime logs are provided from the flexible environment using a preinstalled Stackdriver Logging agent. By changing the default configuration of the agent, you can opt in or opt out of specific logs. See Stackdriver Logging in App Engine Apps for more information.

  • Custom logs can be used with the flexible environment. By writing log files to a specific directory, your app can opt in to using these logs. See Stackdriver Logging in App Engine Apps for more information.

Logs from the flexible environment include resources of type gae_app.

Application and request logs

Request and applications logs are stored separately in the flexible environment.

Log type Payload type Purpose
request text Requests made to your apps in the flexible environment.
app text or structured Application logs entries from your apps in the flexible environment.

Runtime logs

The App Engine flexible environment can write additional logs from the runtimes. See Stackdriver Logging in App Engine Apps for more information. Following are some of the logs that are configured by default:

Log name Payload type Purpose
crash.log text Information logged when setup fails.
monitoring.* text Information from the Google Docker container publishing data to Stackdriver Monitoring.
shutdown.log text Information logged on shutdown.
stdout text Standard output from your app.
stderr text Standard error from your container.
syslog text The VM syslog, outside of the Docker container.

Custom logs

App Engine apps can write their own logs to a designated directory, in which case the logs will appear in Stackdriver Logging prefixed by the string custom.. See Stackdriver Logging in App Engine Apps for more information.

Log name Payload type Purpose
custom.* text or structured Custom logs from your apps.

Send feedback about...

Stackdriver Logging