Created
February 26, 2019 13:52
-
-
Save bhatikuldeep/dae6408eea4663951a7068ef9e72f7d9 to your computer and use it in GitHub Desktop.
Apigee Edge - Extensive logging
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | |
<MessageLogging async="false" continueOnError="false" enabled="true" name="setMessageLogging"> | |
<DisplayName>setMessageLogging</DisplayName> | |
<Syslog> | |
<Message variablePrefix="%" variableSuffix="#">[customerToken@41058 tag="%organization.name#.%apiproxy.name#.%environment.name#"] { | |
"apiproxy": { | |
"name": "%apiproxy.name#", | |
"revision": "%apiproxy.revision#" | |
}, | |
"application": { | |
"basePath": "%application.basepath#" | |
}, | |
"client": { | |
"cn": "%client.cn#", | |
"country": "%client.country#", | |
"emailAddress": "%client.email.addres#", | |
"host": "%client.host#", | |
"ip": "%client.ip#", | |
"locality": "%client.locality#", | |
"organization": "%client.organization#", | |
"unit": "%client.organization.unit#", | |
"port": "%client.port#", | |
"receivedEndTime": "%client.received.end.time#", | |
"receivedEndTimeStamp": "%client.received.end.timestamp#", | |
"receivedStartTime": "%client.received.start.time#", | |
"receivedStartTimeStamp": "%client.received.start.timestamp#", | |
"scheme": "%client.scheme#", | |
"sentEndTime": "%client.sent.end.time#", | |
"sentEndTimeStamp": "%client.sent.end.timestamp#", | |
"sentStartTime": "%client.sent.start.time#", | |
"sentStartTimeStamp": "%client.sent.start.timestamp#", | |
"sslEnabled": "%client.ssl.enabled#", | |
"state": "%client.state#" | |
}, | |
"environment": { | |
"name": "%environment.name#" | |
}, | |
"error": { | |
"isError": "%is.error#", | |
"isPolicyError": "%apigee.edge.execution.is_policy_error#", | |
"isTargetError": "%apigee.edge.execution.is_target_error#", | |
"policyErrorPolicyName": "%apigee.edge.execution.fault_policy_name#", | |
"policyErrorFlowName": "%apigee.edge.execution.fault_flow_name#", | |
"error": "%error#", | |
"content": "%error.content#", | |
"message": "%error.message#", | |
"statusCode": "%error.status.code#", | |
"reasonPhrase": "%error.reason.phrase#", | |
"transportMessage": "%error.transport.message#", | |
"state": "%error.state#" | |
}, | |
"loadbalancing": { | |
"failedServers": "%loadbalancing.failedservers#", | |
"isFallback": "%loadbalancing.isfallback#", | |
"targetServer": "%loadbalancing.targetserver#" | |
}, | |
"message": { | |
"messageId": "%messageid#", | |
"message": "%message#", | |
"content": "%message.content#", | |
"formParamsCount": "%message.formparams.count#", | |
"formParamsNames": "%message.formparams.names#", | |
"formParamsString": "%message.formstring#", | |
"headerCounts": "%message.headers.count#", | |
"headerNames": "%message.headers.names#", | |
"path": "%message.path#", | |
"queryParamsCounts": "%message.queryparams.count#", | |
"queryParamsNames": "%message.queryparams.names#", | |
"querystring": "%message.querystring#", | |
"reasonPhrase": "%message.reason.phrase#", | |
"statusCode": "%message.status.code#", | |
"transportMessage": "%message.transport.message#", | |
"URI": "%message.uri#", | |
"verb": "%message.verb#", | |
"version": "%message.version#" | |
}, | |
"request": { | |
"request": "%request#", | |
"content": "%request.content#", | |
"formParamsCount": "%request.formparams.count#", | |
"formParamsNames": "%request.formparams.names#", | |
"formParamsString": "%request.formstring#", | |
"headerCounts": "%request.headers.count#", | |
"headerNames": "%request.headers.names#", | |
"path": "%request.path#", | |
"queryParamsCounts": "%request.queryparams.count#", | |
"queryParamsNames": "%request.queryparams.names#", | |
"querystring": "%request.querystring#", | |
"transportID": "%request.transportid#", | |
"transportMessage": "%request.transport.message#", | |
"URI": "%request.uri#", | |
"URL": "%request.url#", | |
"verb": "%request.verb#", | |
"version": "%request.version#" | |
}, | |
"response": { | |
"response": "%response#", | |
"content": "%response.content#", | |
"formParamsCount": "%response.formparams.count#", | |
"formParamsNames": "%response.formparams.names#", | |
"headerCounts": "%response.headers.count#", | |
"headerNames": "%response.headers.names#", | |
"reasonPhrase": "%response.reason.phrase#", | |
"statusCode": "%response.status.code#", | |
"transportMessage": "%response.transport.message#" | |
}, | |
"organization": { | |
"name" : "%organization.name#" | |
}, | |
"route": { | |
"name" : "%route.name#", | |
"target" : "%route.target#" | |
}, | |
"router": { | |
"id" : "%router.uuid#" | |
}, | |
"system": { | |
"pod" : "%system.pod.name#", | |
"region" : "%system.region.name#", | |
"time" : "%system.time#", | |
"timezone" : "%system.time.zone#", | |
"timestamp" : "%system.timestamp#", | |
"uuid" : "%system.uuid#" | |
}, | |
"target": { | |
"basepath" : "%target.basepath#", | |
"isCopyPathSuffix" : "%target.copy.pathsuffix#", | |
"isCopyQueryParams" : "%target.copy.queryparams#", | |
"country": "%target.country#", | |
"cn": "%target.cn#", | |
"emailAddress": "%target.email.addres#", | |
"expectedcn": "%target.expectedcn#", | |
"host": "%target.host#", | |
"ip": "%target.ip#", | |
"locality": "%target.locality#", | |
"organization": "%target.organization#", | |
"unit": "%target.organization.unit#", | |
"port": "%target.port#", | |
"receivedEndTime": "%target.received.end.time#", | |
"receivedEndTimeStamp": "%target.received.end.timestamp#", | |
"receivedStartTime": "%target.received.start.time#", | |
"receivedStartTimeStamp": "%target.received.start.timestamp#", | |
"scheme": "%target.scheme#", | |
"sentEndTime": "%target.sent.end.time#", | |
"sentEndTimeStamp": "%target.sent.end.timestamp#", | |
"sentStartTime": "%target.sent.start.time#", | |
"sentStartTimeStamp": "%target.sent.start.timestamp#", | |
"sslEnabled": "%target.ssl.enabled#", | |
"state": "%target.state#", | |
"url": "%target.url#" | |
} | |
} | |
</Message> | |
<Host>logs-01.loggly.com</Host> | |
<Port>514</Port> | |
<FormatMessage>true</FormatMessage> | |
</Syslog> | |
</MessageLogging> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment