# "GET \_cat/indices" does not output all the indices

**URL:** <https://discuss.elastic.co/t/get-cat-indices-does-not-output-all-the-indices/292096>\
**Category:** Elasticsearch\
**Created:** [December 16, 2021, 7:36am UTC](https://discuss.elastic.co/t/get-cat-indices-does-not-output-all-the-indices/292096 "2021-12-16T07:36:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![raulk89](https://avatars.discourse-cdn.com/v4/letter/r/2bfe46/32.png) [@raulk89](https://discuss.elastic.co/u/raulk89)\
**Post date:** [December 16, 2021, 7:36am UTC](https://discuss.elastic.co/t/get-cat-indices-does-not-output-all-the-indices/292096/1 "2021-12-16T07:36:10Z")

</div>

Hi

Elastic, kibana 7.15.1

This gives me 31 rows (30 indices in total and first row for heading)  
`GET _cat/indices/*?v&s=index:desc`

```auto
health status index uuid pri rep docs.count docs.deleted store.size pri.store.size
green open metricbeat-7.15.1 Sg_Qw8L5TzGelnbN0kL0Wg 1 0 49 0 479.7kb 479.7kb
..............
...........
.........
green open .monitoring-es-7-mb-2021.12.10 rWeEyRgXQ6WyaejYtczZyw 1 0 914506 0 476.3mb 476.3mb
green open .kibana_task_manager_7.15.1_001 m714WabpTvWQxel_fza32w 1 0 18 20334 2.9mb 2.9mb
green open .kibana_7.15.1_001 yzDp69dxQla3hNFc_QqOdw 1 0 183 122 10.5mb 10.5mb
green open .kibana-event-log-7.15.1-000002 6sNxfBtjQ8GTSpV-q4VSCQ 1 0 0 0 208b 208b
green open .kibana-event-log-7.15.1-000001 Ij00mOLCT-Cg3hF255AKLA 1 0 18 0 61kb 61kb
green open .fleet-policies-7 JRnuIPXuTtyQMZgLeQeI3A 1 0 1 0 5.7kb 5.7kb
green open .async-search noD20NV6SwiqPXXo0xSjHw 1 0 0 0 259b 259b
green open .apm-custom-link UvgEVYqLRl-jlj2P7qw2FA 1 0 0 0 261b 261b
green open .apm-agent-configuration 6H5VY9ouT_696OwqfOt6gw 1 0 0 0 283b 283b

```

I have sorted this output also by index name, so it is easier to follow. So there are 4 ".kibana\*" indexes present (I pasted all of these there).

But, when I search like this, then I get 5 ".kibana\*" indices.

`GET _cat/indices/.ki*?v&s=index:desc`

```auto
health status index uuid pri rep docs.count docs.deleted store.size pri.store.size
green open .kibana_task_manager_7.15.1_001 m714WabpTvWQxel_fza32w 1 0 18 20553 2.9mb 2.9mb
green open .kibana_security_session_1 9lyvAGzjQ1KG1qkpsCjlOg 1 0 19 0 19.6kb 19.6kb
green open .kibana_7.15.1_001 yzDp69dxQla3hNFc_QqOdw 1 0 183 127 10.5mb 10.5mb
green open .kibana-event-log-7.15.1-000002 6sNxfBtjQ8GTSpV-q4VSCQ 1 0 0 0 208b 208b
green open .kibana-event-log-7.15.1-000001 Ij00mOLCT-Cg3hF255AKLA 1 0 18 0 61kb 61kb

```

This one indice " **.kibana\_security\_session\_1**" is not present from my first command "GET \_cat/indices/\*?v&s=index:desc"

Why is that..?

Also, there are many more indices like that. So it is not the only one.

Regards  
Raul

---

<div class="post-metadata">

**Author:** ![raulk89](https://avatars.discourse-cdn.com/v4/letter/r/2bfe46/32.png) [@raulk89](https://discuss.elastic.co/u/raulk89)\
**Post date:** [December 16, 2021, 8:13am UTC](https://discuss.elastic.co/t/get-cat-indices-does-not-output-all-the-indices/292096/2 "2021-12-16T08:13:04Z")

</div>

Also, when searching with phrase " **ilm-history** \*", I get 1 index.

```auto
GET _cat/indices/ilm-history*?v&s=index:desc
health status index uuid pri rep docs.count docs.deleted store.size pri.store.size
green open ilm-history-3-000004 yHULkcqlQk6i-OyRZq4mlg 1 0 0 0 261b 261b

```

But actually there are 4 more (so 5 in total)

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/c/e/ce78935645e81171941de9fcac75b6bedc9ec07b.png)

When I search with exact match, then I can see those as well

```auto
GET _cat/indices/ilm-history-2-000016?v&s=index:desc
health status index uuid pri rep docs.count docs.deleted store.size pri.store.size
green open ilm-history-2-000016 vPGJAaOCQ4iK6dxjuSzAug 1 0 0 0 208b 208b

```

Raul

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [December 16, 2021, 7:24pm UTC](https://discuss.elastic.co/t/get-cat-indices-does-not-output-all-the-indices/292096/3 "2021-12-16T19:24:18Z")

</div>

Is there an issue or just curious

try

`GET /_cat/indices/ilm*?v&s=index&expand_wildcards=all`

Most the system indices will be really hidden in 8.0 so most this will go away 🙂

See [Here](https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-indices.html)

> `expand_wildcards`
> 
> (Optional, string) Type of index that wildcard patterns can match. If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. Supports comma-separated values, such as `open,hidden` . Valid values are:
> 
> `all`
> 
> Match any data stream or index, including [hidden](https://www.elastic.co/guide/en/elasticsearch/reference/current/multi-index.html#hidden) ones.
> 
> `open`
> 
> Match open, non-hidden indices. Also matches any non-hidden data stream.
> 
> `closed`
> 
> Match closed, non-hidden indices. Also matches any non-hidden data stream. Data streams cannot be closed.
> 
> `hidden`
> 
> Match hidden data streams and hidden indices. Must be combined with `open` , `closed` , or both.
> 
> `none`
> 
> Wildcard patterns are not accepted.

---

<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:** [January 13, 2022, 7:24pm UTC](https://discuss.elastic.co/t/get-cat-indices-does-not-output-all-the-indices/292096/4 "2022-01-13T19:24:37Z")

</div>

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