# Kibana Dashboard Data

**URL:** <https://discuss.elastic.co/t/kibana-dashboard-data/245763>\
**Category:** Kibana\
**Created:** [August 20, 2020, 12:28pm UTC](https://discuss.elastic.co/t/kibana-dashboard-data/245763 "2020-08-20T12:28:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kundan\_Singh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kundan_singh/32/51011_2.png) [@Kundan\_Singh](https://discuss.elastic.co/u/Kundan_Singh)\
**Post date:** [August 20, 2020, 12:28pm UTC](https://discuss.elastic.co/t/kibana-dashboard-data/245763/1 "2020-08-20T12:28:09Z")

</div>

Hi there

How kibana UI request this API for dashboard data.

`http://localhost:5601/elasticsearch/_msearch?rest_total_hits_as_int=true&ignore_throttled=true`

---

<div class="post-metadata">

**Author:** ![myasonik](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/myasonik/32/62369_2.png) [@myasonik](https://discuss.elastic.co/u/myasonik)\
**Post date:** [August 20, 2020, 6:21pm UTC](https://discuss.elastic.co/t/kibana-dashboard-data/245763/2 "2020-08-20T18:21:37Z")

</div>

I'm not entirely sure what you're asking...

Are you asking how to make a dashboard that has a visualization displaying the result of that query or are you asking why that query is being run in an existing dashboard?

Either way, you might also be interested in knowing that \_msearch is going away from within Kibana as it's part of the legacy elasticsearch plugin.

---

<div class="post-metadata">

**Author:** ![Kundan\_Singh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kundan_singh/32/51011_2.png) [@Kundan\_Singh](https://discuss.elastic.co/u/Kundan_Singh)\
**Post date:** [August 21, 2020, 4:41am UTC](https://discuss.elastic.co/t/kibana-dashboard-data/245763/3 "2020-08-21T04:41:41Z")

</div>

Hi myasonik

My question is we have a dashboard list once I clicked on a specific dashboard all visualization inside that dashboard will be a load if I am not wrong for data some API is invoked. So where this API  
` http://localhost:5601/elasticsearch/_msearch?rest_total_hits_as_int=true&ignore_throttled=true`

is playing the role and how kibana UI is call this API not able to find inside the code.

create\_proxy.js

```
    server.route({
        method: 'POST',
        path: '/elasticsearch/_msearch',
        config: {
          payload: {
            parse: 'gunzip'
          }
        },
        async handler(req, h) {
          const { query, payload } = req;
          console.log("======PayLoad=======");
          console.log(payload.toString('utf8'));
          console.log(query);
          return callWithRequest(req, 'transport.request', {
            path: '/_msearch',
            method: 'POST',
            query,
            body: payload.toString('utf8')
          }).finally(r => h.response(r));
        }
      });
```

---

<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:** [September 18, 2020, 4:41am UTC](https://discuss.elastic.co/t/kibana-dashboard-data/245763/4 "2020-09-18T04:41:44Z")

</div>

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