I have this below JSON coming from RabbitMQ
event": {
"payloadContext": {
"messageProfile": {
"domain": "ERP",
"process": "process-01",
"serviceName": "service-01",
"serviceVersion": "4.0.0.RELEASE"
},
"applicationProfile": {
"appName": "app-0",
"appUser": "test"
},
"transactionProfile": {
"transactionDateTime": {
"value": 1472146765000,
"timeZoneCode": null,
"daylightSavingTimeIndicator": null
},
"globalTransactionID": "bb4e273b-c0b6-1378-b2d0-8328971f19d5",
"repostFlag": null,
"transactionMode": null,
"environment": "Test",
"event": null
},
"userArea": null
}
"emailParams": {
"fromAddress": "xxx@abc.com",
"toAddress": "yyy@abc.com",
"subject": xxxxxxxxx,
"template": "xxxxx",
"avoidDuplicate": true,
"attachmentRequired": true,
"ttl": 3600000
},
"ticketParams": null,
"rule": null,
"@version": "1",
"@timestamp": "2016-08-25T17:39:25.442Z"
}
i am looking to extract below fields only and output into elasticsearch
payloadContext/serviceName
applicationProfile/appName
transactionProfile/transactionMode
emailParams/fromAddress
emailParams/toAddress
any input would be very helpful