# Get All Index Patterns

**URL:** <https://discuss.elastic.co/t/get-all-index-patterns/120405>\
**Category:** Kibana\
**Created:** [February 19, 2018, 6:35am UTC](https://discuss.elastic.co/t/get-all-index-patterns/120405 "2018-02-19T06:35:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![waleed\_ali](https://avatars.discourse-cdn.com/v4/letter/w/ebca7d/32.png) [@waleed\_ali](https://discuss.elastic.co/u/waleed_ali)\
**Post date:** [February 19, 2018, 6:35am UTC](https://discuss.elastic.co/t/get-all-index-patterns/120405/1 "2018-02-19T06:35:08Z")

</div>

Hello, Just wanted to ask if there is a way we can get a list of all **_index patterns_** either from Kibana or ES (version 6.x)?  
Actually, I am using Kibana API plugin to add new visualizations to my dashboard dynamically, but I am not finding a way to select Index Pattern (from the list) dynamically.

---

<div class="post-metadata">

**Author:** ![bhavyarm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhavyarm/32/22392_2.png) [@bhavyarm](https://discuss.elastic.co/u/bhavyarm)\
**Post date:** [February 19, 2018, 8:47pm UTC](https://discuss.elastic.co/t/get-all-index-patterns/120405/2 "2018-02-19T20:47:55Z")

</div>

Hi Waleed,

GET \_cat/indices in devtools will get you the list of all index patterns: [https://www.elastic.co/guide/en/elasticsearch/reference/current/\_list\_all\_indices.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/_list_all_indices.html)

Not sure if you can use it to select index patterns dynamically though.

Thanks,  
Bhavya

---

<div class="post-metadata">

**Author:** ![waleed\_ali](https://avatars.discourse-cdn.com/v4/letter/w/ebca7d/32.png) [@waleed\_ali](https://discuss.elastic.co/u/waleed_ali)\
**Post date:** [February 20, 2018, 5:03am UTC](https://discuss.elastic.co/t/get-all-index-patterns/120405/3 "2018-02-20T05:03:52Z")

</div>

Hi Bhavya,

Thanks for your kind help. Unfortunately, this is not the thing I was looking for. I needed the index patterns (the ones we create in Kibana).  
However, I managed to get it working by myself. Kibana API provides a way to do so (and I am not sure why is it not documented).  
For all those trying to get **Index Patterns** , you can get it through the following endpoint:  
[http://localhost:5601/api/saved\_objects/?type=index-pattern&fields=title&per\_page=10000](http://localhost:5601/api/saved_objects/?type=index-pattern&fields=title&per_page=10000)

Please correct me, if there is a better solution to that.

Best,  
Waleed

---

<div class="post-metadata">

**Author:** ![bhavyarm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhavyarm/32/22392_2.png) [@bhavyarm](https://discuss.elastic.co/u/bhavyarm)\
**Post date:** [February 20, 2018, 1:30pm UTC](https://discuss.elastic.co/t/get-all-index-patterns/120405/4 "2018-02-20T13:30:59Z")

</div>

Yay. That should be it :). We don't document the Kibana api because its still considered experimental. Just keep an eye on it.

Cheers,  
Bhavya

---

<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:** [March 20, 2018, 1:31pm UTC](https://discuss.elastic.co/t/get-all-index-patterns/120405/5 "2018-03-20T13:31:19Z")

</div>

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