Hi there,
Here is my log structure that comes directly from a service.
PUT my_index/_doc/1
{
"user": [
{
"firstName": "Tim",
"lastName": "Cook"
},
{
"firstName": "Bill",
"lastName": "Gates"
}
]
}
I want to extract each index in user array and create new documents for them.
So it would be something like,
PUT my_index/_doc/1
{
"user": {
"firstName": "Tim",
"lastName": "Cook"
}
}
PUT my_index/_doc/2
{
"user": {
"firstName": "Bill",
"lastName": "Gates"
}
}
My question is how to do so? use ingest pipeline node? Please give me some idea