<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<MessageLogging continueOnError="false" enabled="true" name="ML-LogSuccessRequestToCloudLogs">
<DisplayName>ML-LogSuccessRequestToCloudLogs</DisplayName>
<CloudLogging>
<LogName>projects/{projectId}/logs/{apiproxy.name}</LogName>
<Message contentType="application/json">
{
"proxyGeneralInfo": {
"environmentName": "{environment.name}",
"apiProxyName": "{apiproxy.name}",
"apiProxyRevision": "{apiproxy.revision}",
"apiProductName": "{apiproduct.name}",
"appName": "{developer.app.name}",
"clientId": "{client_id}",
"correlationId": "{messageid}",
"developerEmail": "{escapeJSON(developer.email)}",
"callingIPAddress": "{escapeJSON(client.ip)}"
},
"requestInfo":{
"requestUrl": "{request.url}",
"verb": "{request.verb}",
"requestReceivedAt": "{client.received.end.time}",
"requestFormParameters": "{request.formstring}",
"requestHeaderNames":"{request.headers.names.string}",
"requestQueryParameters": "{request.querystring}",
"requestPayload": "{escapeJSON(request.content)}",
"originalServerResponse":"{escapeJSON(original-server-response)}"
},
"responseInfo":{
"responseStatusCode": "{message.status.code}",
"responseHeaders":"{message.headers.names.string}",
"responseSentAt": "{client.sent.end.time}",
"responsePayload": "{escapeJSON(message.content)}",
"originalServerResponse":"{escapeJSON(original-server-response)}"
},
"proxyExecutedPolicies":{
"OAuthV2-ValidateAuthToken":{
"failed":"{oauthV2.OAuthV2-ValidateAuthToken.failed}"
},
"KVM-GetEnvironmentVariables":{
"rateLimit":"{rateLimit}",
"projectNumber":"{projectNumber}",
"maximoSecretsName":"{maximoSecretsName}",
"projectId":"{projectId}"
},
"Q-ApplyQuota":{
"failed":"{ratelimit.Q-ApplyQuota.failed}",
"allowedCount":"{ratelimit.Q-ApplyQuota.allowed.count}",
"usedCount":"{ratelimit.Q-ApplyQuota.used.count}",
"remainingCount":"{ratelimit.Q-ApplyQuota.available.count}",
"identifier":"{ratelimit.Q-ApplyQuota.identifier}"
},
"SA-ApplySpikeArrest":{
"failed":"{ratelimit.SA-ApplySpikeArrest.failed}"
},
"SC-CallSecretManagerAPI":{
"failed":"{servicecallout.SC-CallSecretManagerAPI.failed}",
"targetUrl":"{servicecallout.SC-CallSecretManagerAPI.target.url}"
},
"AM-DecodeSecretValue":{
"failed":"{assignmessage.AM-DecodeSecretValue.failed}"
},
"EV-ExtractSecretValues":{
"failed":"{extractvariables.EV-ExtractSecretValues.failed}"
},
"AM-AssignAPIKeyHeader":{
"failed":"{assignmessage.AM-AssignAPIKeyHeader.failed}"
},
"AM-FormatSuccessResponse":{
"failed":"{assignmessage.AM-FormatSuccessResponse.failed}"
}
},
"extraDetails":{
"requestReceivedAtTimestamp":"{client.received.end.timestamp}",
"responseSentAtTimestamp":"{client.sent.end.timestamp}",
"targetEndpointName":"{route.target}",
"routeRuleName":"{route.name}",
"targetEndpointSentResponseAt":"{target.received.end.time}",
"targetEndpointSentResponseAtTimestamp":"{target.received.end.timestamp}",
"targetEndpointReceivedRequestAt":"{target.sent.end.time}",
"targetEndpointReceivedRequestAt":"{target.sent.end.timestamp}"
}
}
</Message>
<ResourceType>api</ResourceType>
</CloudLogging>
<logLevel>INFO</logLevel>
</MessageLogging>