Hi,
I’m trying to get an analytic event log from API Transactional Event, how can I get an analytic event log similar to analytic event log shown in kibana?
for example, this is event log that I got from API Transactional Event
{
“creationDate”: 1628004171544,
“apiName”: “rate”,
“apiVersion”: “1.0.0”,
“apiId”: “id”,
“totalTime”: 72,
“providerTime”: 71,
“applicationName”: “apps”,
“applicationId”: “665796c0-8bb3-4bc3-b207-6e700e91417c”,
“status”: “SUCCESS”,
“totalDataSize”: 4210,
“responseCode”: “200”,
“operationName”: “/Info”,
“httpMethod”: “post”,
“callbackRequest”: false
}
and this is from kibana
{
“_index”: “gateway_default_analytics_transactionalevents-000001”,
“_type”: “_doc”,
“_id”: “X0M3KXsBwLSkouYBDTsJ”,
“_version”: 1,
“_score”: null,
“_source”: {
“eventType”: “Transactional”,
“sourceGateway”: “APIGateway”,
“creationDate”: 1628484078577,
“apiName”: “Reksadana”,
“apiVersion”: “1.0.0”,
“apiId”: “144cbe5e-2b8c-4d7d-8c36-1790f4b522f4”,
“totalTime”: 277,
“sessionId”: “ea2db9142ced4a70ac76951bf26072c4”,
“providerTime”: 30,
“applicationName”: “”,
“applicationIp”: “5”,
“applicationId”: “665796c0-8bb3-4bc3-b207-6e700e91417c”,
“status”: “SUCCESS”,
“reqPayload”: “{"fundCode":"","gcif":"2224989"}”,
“resPayload”: “{"trxId":"UAT-9c70adcd-e92c-4e5c-a212-cf6221021122","success":false,"exception":"MB005","enMessage":"Product data not found.","idMessage":"Data Product.","object":null}”,
“totalDataSize”: 216,
“responseCode”: “200”,
“cachedResponse”: “Not-Cached”,
“operationName”: “/v1.0/detailPortfolio”,
“httpMethod”: “post”,
“requestHeaders”: {
“x-Gateway-APIKey”: “",
“Accept”: “application/json”,
“Connection”: “Keep-Alive”,
“content-type”: “application/json”,
“Host”: “”,
“Content-Length”: “32”
},
“responseHeaders”: {
“Transfer-Encoding”: “chunked”,
“Server”: “Apache-Coyote/1.1”,
“Date”: “Mon, 09 Aug 2021 04:19:30 GMT”,
“Content-Type”: “application/json”
},
“queryParameters”: {},
“correlationID”: “APIGW:4a1cc4e9-ac25-4f2e-b21d-3c7e77f07c36:1417019”,
“customFields”: {},
“nativeRequestHeaders”: {
“Authorization”: "”,
“Accept”: “application/json”,
“Content-Length”: “32”,
“Content-Type”: “application/json”
},
“nativeReqPayload”: “{"fundCode":"","gcif":"2224989"}”,
“nativeResponseHeaders”: {
“Transfer-Encoding”: “chunked”,
“Server”: “Apache-Coyote/1.1”,
“Date”: “Mon, 09 Aug 2021 04:19:30 GMT”,
“Content-Type”: “application/json;charset=UTF-8”
},
“nativeResPayload”: “{"success":false,"exception":"MB005","enMessage":"Product data not found.","idMessage":"Data Product tidak ditemukan.","object":null}”,
“nativeHttpMethod”: “POST”,
“nativeURL”: “http:///mobile/portfolioDetail”,
“externalCalls”: [
{
“externalCallType”: “NATIVE_SERVICE_CALL”,
“externalURL”: “http:///mobile/portfolioDetail”,
“callStartTime”: 1628484078580,
“callEndTime”: 1628484078610,
“callDuration”: 30,
“responseCode”: “200”
}
],
“sourceGatewayNode”: “”,
“callbackRequest”: false
},
“fields”: {
“creationDate”: [
“2021-08-09T04:41:18.577Z”
]
},
“sort”: [
1628484078577
]
}
Thanks,
Dian