How do I convert JSON child arrays to docs in Metricbeat http module


(Sam Harrah) #1

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
        }
    ]
}

(Shaunak Kashyap) #2

Hi @sharrah, the functionality you need is unfortunately not supported by the http metricbeat module. If you have an account on GitHub, please create a new issue to request this enhancement there: https://github.com/elastic/beats/issues/new. That way, you can easily follow along on the progress of your request. If you don't have a GitHub account, just let me know here and I'll create the issue for you.


(system) #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.