When users make requests to your API,
Extensible Service Proxy (ESP)
uses Cloud Logging to log information
about the requests and responses. This page describes the information logged.
To locate Cloud Endpoints logs on the Logs Explorer page:
In the Google Cloud console, go to the Operations > Logging
page:
The jsonPayload object contains all the information reported by
ESP. The following table describes its fields:
Field
Description
url
URL path of the request.
producer_project_id
Google Cloud 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 such as GET and POST.
request_size_in_bytes
Size of request body in bytes.
http_response_code
HTTP status code of the response such as 200, 404, and 500.
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 ESP and its backend. Not present for streaming methods.
timestamp
Timestamp for when the request came in.
location
Google Cloud zone that serviced the request.
log_message
Short message about the called method and its status if it is rejected. No API information fields are logged for rejected calls.
error_cause
Error message if the response was an error.
labels
The labels section contains information that identifies that source of the log, such as the Google Cloud project ID, the Endpoints service name, the API version number, and the method name.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eExtensible Service Proxy (ESP) logs request and response information to Cloud Logging when users interact with your API.\u003c/p\u003e\n"],["\u003cp\u003eYou can access these logs in the Logs Explorer by selecting "Produced API" and the relevant service name.\u003c/p\u003e\n"],["\u003cp\u003eEach log entry is a structured JSON message that includes information about the request, response, and the service itself.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ejsonPayload\u003c/code\u003e within each log contains fields like \u003ccode\u003eurl\u003c/code\u003e, \u003ccode\u003eapi_name\u003c/code\u003e, \u003ccode\u003ehttp_response_code\u003c/code\u003e, \u003ccode\u003erequest_latency_in_ms\u003c/code\u003e, and others, detailing various aspects of the API call.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003elabels\u003c/code\u003e section identifies the source of the log, including the Google Cloud project ID, Endpoints service name, API version, and method name.\u003c/p\u003e\n"]]],[],null,[]]