Hi @magnusbaeck
here is the details. I have 3 records : Delta1, Delta2, Delta3
I need to split the "mks" field into 3 records.
after using this, below split stub i get only 1 record for DELTA3, i need all the three records
split {
field => "[mks]"
}
{
"_index": "test123",
"_type": "logs",
"_id": "DELTA1,DELTA2,DELTA3",
"_score": 1,
"_source": {
"@timestamp": "2017-08-29T06:27:19.208Z",
"number": [
"DELTA1",
"DELTA2",
"DELTA3"
],
"mksrevision": [
[
"DELTA1",
"Description for DELTA1",
"asy",
"try"
],
[
"DELTA2",
"Description for DELTA2",
"BW",
"try"
],
[
"DELTA3",
"Description for DELTA3",
"MO",
"try"
]
],
"mks": [
{
"numbernew": "DELTA1",
"phasenew": "try",
"descnew": "Description for DELTA1",
"typenew": "asy"
},
{
"numbernew": "DELTA2",
"phasenew": "try",
"descnew": "Description for DELTA2",
"typenew": "BW"
},
{
"numbernew": "DELTA3",
"phasenew": "try",
"descnew": "Description for DELTA3",
"typenew": "MO"
}
],
"type": [
"asy",
"BW",
"MO"
],
"phase": [
"try",
"try",
"try"
],
"@version": "1",
"message": "<?xml version='1.0' encoding='UTF-8'?>.......................................></S:Body></S:Envelope>",
"desc": [
"Description for DELTA1",
"Description for DELTA2",
"Description for DELTA3"
],
"tags": [
"xml_parsed"
]
},
"fields": {
"@timestamp": [
1503988039208
]
}
}
Basically i need this 4 columns with 3 records: numbernew,phasenew,descnew,typenew
from the field "mks"