Hi..Need a help to convert sql row to array of objects in logstash.
Sample output from sql -
columnA - 1,3,5,7
columnB - s,c,e,p
Output needed :
{
"details": [
{
"id": 1,
"stat": s
},
{
"id": 3,
"stat": c
},
{
"id": 5,
"stat": e
},
{
"id": 7,
"stat": p
}
]
}
Thanks in Advance