Hi,
I have trouble with a dynamic Json file.
My json have an array of "circuitPath". This circuit path is a nested array inside my main json file that can be N element long.
I would like to parse it dynamicaly like so :
this JSON input:
"circuitPath": [{
"policy": "policy name 1",
"execTime": 10,
"filters": " my first filter"
}, {
"policy": "policy name 2",
"execTime": 20,
"filters": " my second filter"
}, {
"policy": "policy name 3",
"execTime": 25,
"filters": " my third filter"
}
]
would become separeted field in my kibana :
api_policy_name-1=policy name 1
api_policy_Exec_Time-1=10
api_policy_filters-1= my first filter
api_policy_name-2=policy name 2
api_policy_Exec_Time-2=20
api_policy_filters-2=my second filter
api_policy_name-3=policy name 3
api_policy_Exec_Time-3=25
api_policy_filters-3=my third filter
I saw some ruby code to do things looking like that but never found the good one or making it work for my case.
Any information or clues ?
Thanks
Alex