I am using the http module in metricbeat. I have several beats working this way which make requests to return a JSON array at the top (no problem). I have a new request that produces a JSON array under a parent. I need to convert each element of the JSON array into docs in the index. Here is an example of the output:
{
"parent": [
{
"idfield": "myidvalue1",
"timestampfield": 1541365200000,
"metricvaluefield": 123456
},
{
"idfield": "myidvalue2",
"timestampfield": 1541365200000,
"metricvaluefield": 45678
}
]
}