# Get elasticsearch's indices names - and names only

**URL:** <https://discuss.elastic.co/t/get-elasticsearchs-indices-names-and-names-only/165981>\
**Category:** Elasticsearch\
**Created:** [January 28, 2019, 10:35am UTC](https://discuss.elastic.co/t/get-elasticsearchs-indices-names-and-names-only/165981 "2019-01-28T10:35:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![yishain11](https://avatars.discourse-cdn.com/v4/letter/y/df705f/32.png) [@yishain11](https://discuss.elastic.co/u/yishain11)\
**Post date:** [January 28, 2019, 10:35am UTC](https://discuss.elastic.co/t/get-elasticsearchs-indices-names-and-names-only/165981/1 "2019-01-28T10:35:09Z")

</div>

Hi there.  
I know that in order to get all indices I need to use: GET /\_cat/indices?v  
But then I get response body that contains alot of information that I don't need (like index size) and I'm having trouble parsing the data (because the response body is in string format and not JSON )  
Is there an easy way to get the indices names only, or filter them from the original response?

---

<div class="post-metadata">

**Author:** ![Bernt\_Rostad](https://avatars.discourse-cdn.com/v4/letter/b/3ab097/32.png) [@Bernt\_Rostad](https://discuss.elastic.co/u/Bernt_Rostad)\
**Post date:** [January 28, 2019, 10:47am UTC](https://discuss.elastic.co/t/get-elasticsearchs-indices-names-and-names-only/165981/2 "2019-01-28T10:47:32Z")

</div>

> [@yishain11](#):
>
> Is there an easy way to get the indices names only

GET \_cat/indices?h=index

---

<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 25, 2019, 10:47am UTC](https://discuss.elastic.co/t/get-elasticsearchs-indices-names-and-names-only/165981/3 "2019-02-25T10:47:33Z")

</div>

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