# Support of nested queries in Kibana

**URL:** <https://discuss.elastic.co/t/support-of-nested-queries-in-kibana/357265>\
**Category:** Kibana\
**Created:** [April 12, 2024, 8:40am UTC](https://discuss.elastic.co/t/support-of-nested-queries-in-kibana/357265 "2024-04-12T08:40:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hans\_hupe](https://avatars.discourse-cdn.com/v4/letter/h/ba9def/32.png) [@hans\_hupe](https://discuss.elastic.co/u/hans_hupe)\
**Post date:** [April 12, 2024, 8:40am UTC](https://discuss.elastic.co/t/support-of-nested-queries-in-kibana/357265/1 "2024-04-12T08:40:03Z")

</div>

I have an index with documents like this

```auto
{
   "id":1,
   "logs":[
      {
         "who":"max",
         "action":"delete"
      },
      {
         "who":"peter",
         "action":"save"
      }
   ]
},
{
   "id":2,
   "logs":[
      {
         "who":"steve",
         "action":"create"
      },
      {
         "who":"peter",
         "action":"delete"
      }
   ]
}

```

In Kibana, I would like to visualize the data as a table and bar chat in such a way:

```auto
Name Create Delete Save
Steve 1 0 0
Peter 0 1 1
Max 0 1 0

```

How can I achieve that in Kibana?

---

<div class="post-metadata">

**Author:** ![Dzmitry](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dzmitry/32/65026_2.png) [@Dzmitry](https://discuss.elastic.co/u/Dzmitry)\
**Post date:** [April 12, 2024, 7:00pm UTC](https://discuss.elastic.co/t/support-of-nested-queries-in-kibana/357265/2 "2024-04-12T19:00:50Z")

</div>

Hi @hans_hupe ,

I think there is no easy way to analyse nested fields in Kibana, you can check github issue [kibana//58175](https://github.com/elastic/kibana/issues/58175)

There is interesting idea mentioned in this [post](https://discuss.elastic.co/t/how-to-analyse-nested-fields/325944/2), I suggest you to check it as you might be able to achive it with Vega.

Best, Dima
