Hi,
I have a JSON message similar to this:
{
"methodName": "getDigitalId()",
"host": "localhost",
"threadName": "960894892@qtp-699536522-6(355)",
"requestData": [
"{"data":{"requestContext":{"messageTraceId":null,"senderId":null,"applicationSessionId":null},"userId":"username","uuid":0}}"
],
"responseData":
"{"data":{"requestContext":null,"digitalIdEbo":{"id":935,"username":"blah@some.com","password":"5AED6242E91AEA045306CDA531121FF966DB321F"}}}"
,
"eventLocation": "ADAPTOR",
"applicationSessionId": "dwifj334uhdgfff",
"applicationVersion": "NOT_SUPPLIED"
}
I would like to expand the *requestData *and *responseData *field as part
of the document when I insert it into elasticsearch.
Is there a mapping for such type - i.e. expand the quoted JSON string and
merge it into the JSON document?
The result document should look something like:
{
"methodName": "getDigitalId()",
"host": "localhost",
"threadName": "960894892@qtp-699536522-6(355)",
"requestData": [
{
"data": {
"requestContext": {
"messageTraceId": null,
"senderId": null,
"applicationSessionId": null
},
"userId": "username",
"uuid": 0
}
}
],
"responseData": {
"data": {
"requestContext": null,
"digitalIdEbo": {
"id": 935,
"username": "blah@some.com",
"password": "5AED6242E91AEA045306CDA531121FF966DB321F"
}
}
},
"eventLocation": "ADAPTOR",
"applicationSessionId": "dwifj334uhdgfff",
"applicationVersion": "NOT_SUPPLIED"
}
thanking you in advance.
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.