# How to add automatically all the indices from elasticsearch to kibana?

**URL:** https://discuss.elastic.co/t/how-to-add-automatically-all-the-indices-from-elasticsearch-to-kibana/81136
**Category:** Kibana
**Created:** [April 4, 2017, 11:41am UTC](https://discuss.elastic.co/t/how-to-add-automatically-all-the-indices-from-elasticsearch-to-kibana/81136 "2017-04-04T11:41:29Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![jafferwilson](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jafferwilson/32/14379_2.png) [@jafferwilson](https://discuss.elastic.co/u/jafferwilson)
#### Post date: [April 4, 2017, 11:41am UTC](https://discuss.elastic.co/t/how-to-add-automatically-all-the-indices-from-elasticsearch-to-kibana/81136/1 "2017-04-04T11:41:29Z")

</div>

I am trying to list my elasticsearch indices into kibana for a visualization, so that I can use the data in my program.  
Whenever I try to map the index in kibana, I manually input the name of the index. I have 20 + indices into elasticsearch and I do not prefer to index them manually.  
I would like to know how I can make the mapping automatic? If any configuration or coding is require then how I can achieve to develop a plugin for my requirements. Kindly help me.

Here is the Kibana5 management console for indexed patterns:  
 ![](https://us1.discourse-cdn.com/elastic/original/3X/9/9/9905a168320ab1af3b8748d9e007623a5fa2b8d0.PNG)

As one can see only one index finale in the list. That I have done manually. But I have many indices, so need to make the process automatic. Kindly help me with suggestions.

---

<div class="post-metadata">

### Author: ![jbudz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jbudz/32/45922_2.png) [@jbudz](https://discuss.elastic.co/u/jbudz)
#### Post date: [April 4, 2017, 3:38pm UTC](https://discuss.elastic.co/t/how-to-add-automatically-all-the-indices-from-elasticsearch-to-kibana/81136/2 "2017-04-04T15:38:12Z")

</div>

Theres no easy way to do this currently. The index pattern creation steps are done in the browser using kibana's proxy to elasticsearch, and it makes several requests - the code is [here](https://github.com/elastic/kibana/blob/master/src/ui/public/index_patterns/_index_pattern.js#L356)

You could go through that code and extract parts, or inspect the requests kibana is making when an index pattern is created and do the same thing with a separate script.

---

<div class="post-metadata">

### Author: ![jafferwilson](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jafferwilson/32/14379_2.png) [@jafferwilson](https://discuss.elastic.co/u/jafferwilson)
#### Post date: [April 5, 2017, 5:17am UTC](https://discuss.elastic.co/t/how-to-add-automatically-all-the-indices-from-elasticsearch-to-kibana/81136/3 "2017-04-05T05:17:00Z")

</div>

Thank you for your reply. But can you please share with me, how I can and where I can make the changes. I will be delighted to know more.  
Please help me.

---

<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: [May 3, 2017, 5:17am UTC](https://discuss.elastic.co/t/how-to-add-automatically-all-the-indices-from-elasticsearch-to-kibana/81136/4 "2017-05-03T05:17:05Z")

</div>

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