# Map JSON from Cloudflare

**URL:** https://discuss.elastic.co/t/map-json-from-cloudflare/184457
**Category:** Elasticsearch
**Created:** [June 5, 2019, 9:09pm UTC](https://discuss.elastic.co/t/map-json-from-cloudflare/184457 "2019-06-05T21:09:28Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![magr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magr/32/47582_2.png) [@magr](https://discuss.elastic.co/u/magr)
#### Post date: [June 5, 2019, 9:09pm UTC](https://discuss.elastic.co/t/map-json-from-cloudflare/184457/1 "2019-06-05T21:09:28Z")

</div>

Hi there,  
I pull API data from Cloudflare through the http\_poller\_plugin from Logstash to Elasticsearch. That works fine. Except for the JSON response and the regarding mapping in Elasticsearch. I am going to understand a bit how the entire Elastic ecosystem works and would be glad about help from you guys. The JSON data I passthrough to Elasticsearch is not well automatically mapped. A response from Cloudflare looks like this:

```
{
"success": true,
"query": {
    "since": "2019-05-29T00:00:00Z",
    "until": "2019-06-05T00:00:00Z",
    "time_delta": 1440
},
"errors": [],
"messages": [],
"result": {
    "timeseries": [
        {
            "bandwidth": {
                "all": 56027939,
                "cached": 2864649,
                "content_type": {
                    "empty": 11575,

```

You may see, the interesting data starting in the "result" property. Can I isolate it in any kind, to just get everything within "timeseries"? The entire mapping looks like this at the moment, which is hardly to work further with:

 ![elastic_cf](https://us1.discourse-cdn.com/elastic/original/3X/e/e/ee528806419fa3aaef85c4e968280751d3d7c8c8.png)

---

<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: [July 3, 2019, 9:09pm UTC](https://discuss.elastic.co/t/map-json-from-cloudflare/184457/2 "2019-07-03T21:09:35Z")

</div>

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

---

<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: [July 3, 2019, 9:09pm UTC](https://discuss.elastic.co/t/map-json-from-cloudflare/184457/3 "2019-07-03T21:09:36Z")

</div>



---

<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: [November 4, 2022, 7:11am UTC](https://discuss.elastic.co/t/map-json-from-cloudflare/184457/4 "2022-11-04T07:11:04Z")

</div>


