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

**URL:** <https://discuss.elastic.co/t/how-do-i-convert-json-child-arrays-to-docs-in-metricbeat-http-module/155463>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [November 5, 2018, 9:59pm UTC](https://discuss.elastic.co/t/how-do-i-convert-json-child-arrays-to-docs-in-metricbeat-http-module/155463 "2018-11-05T21:59:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sharrah](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sharrah/32/37319_2.png) [@sharrah](https://discuss.elastic.co/u/sharrah)\
**Post date:** [November 5, 2018, 9:59pm UTC](https://discuss.elastic.co/t/how-do-i-convert-json-child-arrays-to-docs-in-metricbeat-http-module/155463/1 "2018-11-05T21:59:25Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![shaunak](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shaunak/32/6643_2.png) [@shaunak](https://discuss.elastic.co/u/shaunak)\
**Post date:** [November 6, 2018, 3:21pm UTC](https://discuss.elastic.co/t/how-do-i-convert-json-child-arrays-to-docs-in-metricbeat-http-module/155463/2 "2018-11-06T15:21:31Z")

</div>

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](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.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 4, 2018, 3:21pm UTC](https://discuss.elastic.co/t/how-do-i-convert-json-child-arrays-to-docs-in-metricbeat-http-module/155463/3 "2018-12-04T15:21:36Z")

</div>

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