I am trying to correlate data so that i can generate a report. The start of the log has a message 'TRANSACTION_STARTED' and there is GatewayTxCode associated with it. The last log has message 'TRANSACTION_SUCCESS' (or failure). I need to generate a report where I need to show correlate these logs with the help of GatewayTxCode. Is there anyway we can do this in kibana and generate reports? I am pasting the json doc of the log message.
{
"_index": "abcd-local-2018.08.23",
"_type": "logevent",
"_id": "2_b0bc7bb1-6402-49db-9e4a-3aa3982d828a",
"_version": 1,
"_score": null,
"_source": {
"@timestamp": "2018-08-23T12:14:18.8640746+01:00",
"level": "Information",
"messageTemplate": "TRANSACTION_SUCCESS",
"message": "TRANSACTION_SUCCESS",
"fields": {
"GatewayTxCode": "7845a46d-d834-4a00-9ae5-08ed5ed55350",
"CorrelationId": "7ae5f117-f1e8-44a1-afec-5a433c2751b5",
"SourceContext": "xyzr",
"Service": "PWSP",
"EnvironmentId": "cdef",
"EnvironmentUserName": "abcd"
}
},
"fields": {
"@timestamp": [
"2018-08-23T11:14:18.864Z"
]
},
"sort": [
1535022858864
]
}
Any help will be much appreciated.
Thanks,
Sagar