# Fetch .kibana indices that end with integer

**URL:** <https://discuss.elastic.co/t/fetch-kibana-indices-that-end-with-integer/293544>\
**Category:** Elasticsearch\
**Created:** [January 5, 2022, 1:21pm UTC](https://discuss.elastic.co/t/fetch-kibana-indices-that-end-with-integer/293544 "2022-01-05T13:21:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Usman18](https://avatars.discourse-cdn.com/v4/letter/u/0ea827/32.png) [@Usman18](https://discuss.elastic.co/u/Usman18)\
**Post date:** [January 5, 2022, 1:21pm UTC](https://discuss.elastic.co/t/fetch-kibana-indices-that-end-with-integer/293544/1 "2022-01-05T13:21:46Z")

</div>

Hi everyone

I want to only fetch those kibana indices that end with integer like this .kibana\_1, .kibana\_2 etc I know how to fetch all indices that start with .kibana text using following curl command that I have typed below

```auto
curl -k -u username:password -X GET "https://localhost:9200/_cat/indices/.kibana*"

```

But i want to find only those indices that have this pattern .kibana\_\<integer\_value\>. For example, if i have following kibana indices in elasticsaerch

```auto
.kibana_task_manager_1
.kibana-event-log-7.10.2-000001
.kibana_1
.kibana_2
.kibana_3

```

I want to fetch the details of only kibana indices that match this pattern .kibana\_\<integer\_value\> Can anyone please guide me is there any way to achieve this thing? What changes i should make in the url that i provide in curl command to achieve this. Kindly guide me. I am very thankful to you.

---

<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 2, 2022, 1:22pm UTC](https://discuss.elastic.co/t/fetch-kibana-indices-that-end-with-integer/293544/2 "2022-02-02T13:22:10Z")

</div>

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