# Python read all index pattern

**URL:** <https://discuss.elastic.co/t/python-read-all-index-pattern/262293>\
**Category:** Elasticsearch\
**Created:** [January 26, 2021, 11:38pm UTC](https://discuss.elastic.co/t/python-read-all-index-pattern/262293 "2021-01-26T23:38:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![elasticforme](https://avatars.discourse-cdn.com/v4/letter/e/f05b48/32.png) [@elasticforme](https://discuss.elastic.co/u/elasticforme)\
**Post date:** [January 26, 2021, 11:38pm UTC](https://discuss.elastic.co/t/python-read-all-index-pattern/262293/1 "2021-01-26T23:38:00Z")

</div>

is there a python call to read all index patterns

I can read all indexes but I want to read patterns name

for example I have index-1, index-2, index-3

and index pattern is index-\* and I use that for all visulization.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [January 27, 2021, 12:24am UTC](https://discuss.elastic.co/t/python-read-all-index-pattern/262293/2 "2021-01-27T00:24:13Z")

</div>

Index patterns are a Kibana method for accessing Elasticsearch, they aren't an Elasticsearch funamental.

There might be a Kibana API to get that, but I'm not super aware of that area sorry.

---

<div class="post-metadata">

**Author:** ![elasticforme](https://avatars.discourse-cdn.com/v4/letter/e/f05b48/32.png) [@elasticforme](https://discuss.elastic.co/u/elasticforme)\
**Post date:** [January 27, 2021, 2:14pm UTC](https://discuss.elastic.co/t/python-read-all-index-pattern/262293/3 "2021-01-27T14:14:33Z")

</div>

found something on other thread

curl -u username -XGET [http://hostname:5601/api/saved\_objects/\_find?type=index-pattern](http://hostname:5601/api/saved_objects/_find?type=index-pattern)

and it gives me all pattern in json.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [January 27, 2021, 9:00pm UTC](https://discuss.elastic.co/t/python-read-all-index-pattern/262293/4 "2021-01-27T21:00:36Z")

</div>

Right, that's Kibana not Elasticsearch.

---

<div class="post-metadata">

**Author:** ![elasticforme](https://avatars.discourse-cdn.com/v4/letter/e/f05b48/32.png) [@elasticforme](https://discuss.elastic.co/u/elasticforme)\
**Post date:** [January 27, 2021, 9:30pm UTC](https://discuss.elastic.co/t/python-read-all-index-pattern/262293/5 "2021-01-27T21:30:02Z")

</div>

that is right. but your answer give me clue to look on other places.

---

<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:** [February 24, 2021, 9:30pm UTC](https://discuss.elastic.co/t/python-read-all-index-pattern/262293/6 "2021-02-24T21:30:04Z")

</div>

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