# Problems with visualizing netsted types in kibana

**URL:** <https://discuss.elastic.co/t/problems-with-visualizing-netsted-types-in-kibana/24944>\
**Category:** Kibana\
**Created:** [July 6, 2015, 11:30am UTC](https://discuss.elastic.co/t/problems-with-visualizing-netsted-types-in-kibana/24944 "2015-07-06T11:30:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yulias\_Stolin](https://avatars.discourse-cdn.com/v4/letter/y/c4cdca/32.png) [@Yulias\_Stolin](https://discuss.elastic.co/u/Yulias_Stolin)\
**Post date:** [July 6, 2015, 11:30am UTC](https://discuss.elastic.co/t/problems-with-visualizing-netsted-types-in-kibana/24944/1 "2015-07-06T11:30:04Z")

</div>

Hi,

I've created a following mapping:

```
{ "mappings":{
     "smalltype":{
        "properties":{
           "top_domains":{
              "properties":{
                 "num":{"type":"integer"},
                 "value":{"type":"string"}
              }
           },
           "top_ip_addresses":{
             "type": "nested",  
              "properties":{
                 "ATCK1":{"type":"integer"},
                 "ATCK2":{"type":"integer"},
                 "ATCK3":{"type":"integer"},
                 "ATCK4":{"type":"integer"},
                 "country_code":{"type":"string"},
                 "ip_address":{"type":"string"}
              }
           },
           "top_paths":{
              "properties":{
                 "num":{"type":"integer"},
                 "value":{"type":"string"}
              }
           }
        }
     }
  }

```

}

Then put the document into Elastic Search

```
{"top_domains":[{"num":2,"value":"url1.com"},{"num":2,"value":"url2.com"},{"num":1,"value":"url3.net"}],"top_paths":[{"num":212,"value":"/test.gif"}],"top_ip_addresses":[{"ATCK1":4,"ATCK2":6,"ATCK3":2,"company_name":"Generic_ISP_LTD","country_code":"IT","ip_address":"1.1.1.1","ATCK4":1},{"ATCK1":0,"ATCK2":1,"ATCK3":7,"company_name":"You_ISP","country_code":"US","ip_address":"2.2.2.2","ATCK4":7},{"ATCK1":1,"ATCK2":7,"ATCK3":3,"company_name":"ISPs_R_Us","country_code":"IL","ip_address":"3.3.3.3","ATCK4":2}]}

```

Then I try to create visualizations graphs, for example: visualize the graph per each country\_code to show the max(ATCK1)  
But Kibana doesn't show me any results.

If I remove from the "top\_ip\_addresses" the "type": "nested" notion, I can get the queries in kibana, but then it is treated like object, and loses context correlation

Am I missing something? Should I change the index mapping in some different way. Give Kibana some hint ???

Thanks,  
Julia

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 6, 2015, 11:33am UTC](https://discuss.elastic.co/t/problems-with-visualizing-netsted-types-in-kibana/24944/2 "2015-07-06T11:33:12Z")

</div>

KB4 doesn't support nesting or parent/child at this point in time.

---

<div class="post-metadata">

**Author:** ![Yulias\_Stolin](https://avatars.discourse-cdn.com/v4/letter/y/c4cdca/32.png) [@Yulias\_Stolin](https://discuss.elastic.co/u/Yulias_Stolin)\
**Post date:** [July 6, 2015, 11:49am UTC](https://discuss.elastic.co/t/problems-with-visualizing-netsted-types-in-kibana/24944/3 "2015-07-06T11:49:10Z")

</div>

Thanks, Do you know when such support is planned to be added?

---

<div class="post-metadata">

**Author:** ![tbragin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tbragin/32/45166_2.png) [@tbragin](https://discuss.elastic.co/u/tbragin)\
**Post date:** [July 6, 2015, 5:10pm UTC](https://discuss.elastic.co/t/problems-with-visualizing-netsted-types-in-kibana/24944/4 "2015-07-06T17:10:50Z")

</div>

It's not yet targeted, so feel free to add a +1 and your comments / use case to this issue: [https://github.com/elastic/kibana/issues/1084](https://github.com/elastic/kibana/issues/1084)

---

<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 6, 2017, 2:17pm UTC](https://discuss.elastic.co/t/problems-with-visualizing-netsted-types-in-kibana/24944/5 "2017-07-06T14:17:00Z")

</div>


