Transaction Event API Gateway Analytic Log

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

Unfortunately, I see that the response variables are intentionally limited. For details about the REST API, see this file -

Path - SAGInstallDir/
IntegrationServer/instances/default/packages/WmAPIGateway/resources/apigatewayservices/APIGatewayTransactionDataService.json

I am unsure if adding additional variables to this JSON file at all relevant places, will solve your problem. The caveat is that this may not be supported; you can create a ticket on Empower to check.

Alternatively, you can use the Kibana APIs directly (they in turn invoke Elasticsearch APIs).

KM

Hi Dian, Are you looking for explicit event log file (physical file) …so what drives your use case please let us know.

HTH,
RMG