Skip to content

Latest commit

 

History

History
73 lines (63 loc) · 4.52 KB

gateway-log-schema-reference.md

File metadata and controls

73 lines (63 loc) · 4.52 KB
titledescriptionservicesauthorms.servicems.customms.topicms.datems.author
Reference - Azure API Management gateway log
Schema reference for the Azure API Management GatewayLogs log. Entries include properties that are logged for each API request.
api-management
dlepow
azure-api-management
mvc
tutorial
05/14/2024
danlep

Reference: Gateway log schema

[!INCLUDE api-management-availability-all-tiers]

This article provides a schema reference for the Azure API Management GatewayLogs resource log. Log entries also include fields in the top-level common schema.

To enable collection of the resource log in API Management, see Monitor published APIs.

GatewayLogs schema

The following properties are logged for each API request.

PropertyTypeDescription
ApiIdstringAPI entity identifier for current request
ApimSubscriptionIdstringSubscription entity identifier for current request
ApiRevisionstringAPI revision for current request
BackendIdstringBackend entity identifier for current request
BackendMethodstringHTTP method of the request sent to a backend
BackendProtocolstringHTTP protocol version of the request sent to a backend
BackendRequestBodystringBackend request body
BackendRequestHeadersdynamicCollection of HTTP headers sent to a backend
BackendResponseBodystringBackend response body
BackendResponseCodeintCode of the HTTP response received from a backend
BackendResponseHeadersdynamicCollection of HTTP headers received from a backend
BackendTimelongNumber of milliseconds spent on overall backend I/O (connecting, sending, and receiving bytes)
BackendUrlstringURL of the request sent to a backend
CachestringStatus of API Management cache involvement in request processing (hit, miss, none)
CacheTimelongNumber of milliseconds spent on overall API Management cache IO (connecting, sending and receiving bytes)
ClientProtocolstringHTTP protocol version of the incoming request
ClientTimelongNumber of milliseconds spent on overall client I/O (connecting, sending, and receiving bytes)
ClientTlsVersionstringTLS version used by client sending request
ErrorsdynamicCollection of error occurred during request processing
IsRequestSuccessboolHTTP request completed with response status code within 2xx or 3xx range
LastErrorElapsedlongNumber of milliseconds elapsed since gateway received request until the error occurred
LastErrorMessagestringError message
LastErrorReasonstringError reason
LastErrorScopestringScope of the policy document containing policy caused the error
LastErrorSectionstringSection of the policy document containing policy caused the error
LastErrorSourcestringNaming of the policy or processing internal handler caused the error
MethodstringHTTP method of the incoming request
OperationIdstringOperation entity identifier for current request
ProductIdstringProduct entity identifier for current request
RequestBodystringClient request body
RequestHeadersdynamicCollection of HTTP headers sent by a client
RequestSizeintNumber of bytes received from a client during request processing
ResponseBodystringGateway response body
ResponseCodeintStatus code of the HTTP response sent to a client
ResponseHeadersdynamicCollection of HTTP headers sent to a client
ResponseSizeintNumber of bytes sent to a client during request processing
TotalTimelongNumber of milliseconds spent on overall HTTP request (from first byte received by API Management to last byte a client received back)
TraceRecordsdynamicRecords emitted by trace policies
UrlstringURL of the incoming request
UserIdstringUser entity identifier for current request

Related content

close