Hi All,
I have a array json which am getting from http end point
"summary": { "result": [ { "status": { "offlineCount": 0, "warningCount": 0, "onlineCount": 1 }, "store": { "code": "345", "name": "Groovy", "id": "8" } }, { "status": { "offlineCount": 1, "warningCount": 0, "onlineCount": 0 }, "store": { "code": "3435", "name": "Groovy Result", "id": "8" } } ] }
I need to split into multiple documents like below
"summary": {
"result": [
{
"status": {
"offlineCount": 0,
"warningCount": 0,
"onlineCount": 1
},
"store": {
"code": "345",
"name": "Groovy",
"id": "8"
}
}
]
}
"summary": {
"result": [
{
"status": {
"offlineCount": 1,
"warningCount": 0,
"onlineCount": 0
},
"store": {
"code": "3435",
"name": "Groovy Result",
"id": "8"
}
}
]
}
Could some one help me how can achieve this using logstash/ingestion pipelines
Thanks