Endpoints Logs

When users make requests to your API, Google Cloud Endpoints logs information about the requests and responses. This page describes the information logged.

Click the log you want to investigate. The log contains a structured JSON message such as the following:

  insertId: "…"
  jsonPayload: {…}
  resource: {
    type: "api"
    labels: {…}
  timestamp: "2017-05-08T15:00:02.804424422Z"
  severity: "INFO"
  logName: "…"

The jsonPayload object contains all the information reported by Cloud Endpoints. The following table describes its fields:

Field Description
url URL path of the request
producer_project_id Project ID that owns the API
api_name Name of the API invoked
api_version Version of the named API invoked
api_method Method of the named API invoked
api_key API key used by the calling consumer, if present
http_method HTTP method of the request like GET, POST, etc
request_size_in_bytes Size of request body in bytes
http_response_code HTTP status code of the response like 200, 404, 500, etc
response_size_in_bytes Size of the response body in bytes
request_latency_in_ms Time it took to respond to the request in milliseconds, including the time taken by the endpoints proxy and its backend. Not present for streaming methods.
timestamp Timestamp for when the request came in
location Google cloud zone which serviced the request
log_message Short message about the called method and its status if it is rejected. No API information fields will be logged for rejected calls.
error_cause Error message if the response was an error
Was this page helpful? Let us know how we did:

Send feedback about...

Cloud Endpoints Frameworks for App Engine
Need help? Visit our support page.