# How to query Indexes of ES from kibana plugin

**URL:** https://discuss.elastic.co/t/how-to-query-indexes-of-es-from-kibana-plugin/205602
**Category:** Kibana
**Created:** [October 29, 2019, 7:12am UTC](https://discuss.elastic.co/t/how-to-query-indexes-of-es-from-kibana-plugin/205602 "2019-10-29T07:12:40Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![jaytran](https://avatars.discourse-cdn.com/v4/letter/j/db5fbb/32.png) [@jaytran](https://discuss.elastic.co/u/jaytran)
#### Post date: [October 29, 2019, 7:12am UTC](https://discuss.elastic.co/t/how-to-query-indexes-of-es-from-kibana-plugin/205602/1 "2019-10-29T07:12:40Z")

</div>

Hi All,

I'm a new one, I'm trying to build a plugin that collect documents from Indexes of ES and then generate a report on kibana. if possible, please share me a sample code. thank you for any response

---

<div class="post-metadata">

### Author: ![christophilus](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christophilus/32/42991_2.png) [@christophilus](https://discuss.elastic.co/u/christophilus)
#### Post date: [October 29, 2019, 3:47pm UTC](https://discuss.elastic.co/t/how-to-query-indexes-of-es-from-kibana-plugin/205602/2 "2019-10-29T15:47:28Z")

</div>

I'm not quite sure what you mean, but it sounds to me like you don't need a plugin. You should just be able to build one or more visualizations that run the queries you want / visualize things the way you want, and then put them in a dashboard.

If you want to make a custom visualization, that's doable. Have a look at our visualizations:

> **[elastic/kibana](https://github.com/elastic/kibana/tree/master/src/legacy/core_plugins/vis_type_metric)**
>
> Your window into the Elastic Stack. Contribute to elastic/kibana development by creating an account on GitHub.

---

<div class="post-metadata">

### Author: ![jaytran](https://avatars.discourse-cdn.com/v4/letter/j/db5fbb/32.png) [@jaytran](https://discuss.elastic.co/u/jaytran)
#### Post date: [October 30, 2019, 2:18am UTC](https://discuss.elastic.co/t/how-to-query-indexes-of-es-from-kibana-plugin/205602/3 "2019-10-30T02:18:31Z")

</div>

Hi christophilus,

Thank you for your response, I want to build a report that get data from indices of Elastic, As my understanding, in that case we need to build a plugin using React. I'm not sure Visualization can perform this task or not. please correct me if my understanding is wrong.

---

<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 27, 2019, 2:19am UTC](https://discuss.elastic.co/t/how-to-query-indexes-of-es-from-kibana-plugin/205602/4 "2019-11-27T02:19:56Z")

</div>

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