# Storage sinze index of a policy

**URL:** <https://discuss.elastic.co/t/storage-sinze-index-of-a-policy/340881>\
**Category:** Kibana\
**Tags:** ilm-index-lifecycle-management\
**Created:** [August 16, 2023, 7:55am UTC](https://discuss.elastic.co/t/storage-sinze-index-of-a-policy/340881 "2023-08-16T07:55:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![agomezgu](https://avatars.discourse-cdn.com/v4/letter/a/d07c76/32.png) [@agomezgu](https://discuss.elastic.co/u/agomezgu)\
**Post date:** [August 16, 2023, 7:55am UTC](https://discuss.elastic.co/t/storage-sinze-index-of-a-policy/340881/1 "2023-08-16T07:55:14Z")

</div>

Hi, I'm new to ELKstack and I'm trying to get from an Index Lifecycle Policies "logstash-pro" all the indexes that are in it, and also about this to return me the space occupied by each index.

For example, I use the statement:

```auto
GET _ilm/policy/logstash-pro

```

To obtain all the indexes of that sentence, but it doesn't tell me how much space occupies each one of them, for that I have obtained it using:

```auto
GET /_cat/indices/logstash-pro-oracle-*?h=index,docs.count,store.size

```

But it is possible that not all indexes  
"logstash-pro-oracle-\*" belong to the policy "logstash-pro"-

How can I get all this information in one statement using the kibana dev tools?

Could you help me. Thank you very much.

---

<div class="post-metadata">

**Author:** ![agomezgu](https://avatars.discourse-cdn.com/v4/letter/a/d07c76/32.png) [@agomezgu](https://discuss.elastic.co/u/agomezgu)\
**Post date:** [August 16, 2023, 11:07am UTC](https://discuss.elastic.co/t/storage-sinze-index-of-a-policy/340881/2 "2023-08-16T11:07:26Z")

</div>

I am in version 7.17 and I am testing more sentences like:

```auto
GET _ilm/policy/logstash-pro/indices/_search?q=*&h=index,store.size

```

But it always returns errors.

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [August 16, 2023, 12:36pm UTC](https://discuss.elastic.co/t/storage-sinze-index-of-a-policy/340881/3 "2023-08-16T12:36:48Z")

</div>

> [@agomezgu](#):
>
> `GET _ilm/policy/logstash-pro/indices/_search?q=*&h=index,store.size`

This endpoint does not exist, check the [documentiaton](https://www.elastic.co/guide/en/elasticsearch/reference/7.17/ilm-get-lifecycle.html#ilm-get-lifecycle).

You can use only `GET _ilm/policy` to return information about all policies or `GET _ilm/policy/<policy_id>` to get information about a specific policy.

> [@agomezgu](#):
>
> How can I get all this information in one statement using the kibana dev tools?

This is not possiblet, there is no endpoint that would return it.

---

<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:** [September 13, 2023, 12:37pm UTC](https://discuss.elastic.co/t/storage-sinze-index-of-a-policy/340881/4 "2023-09-13T12:37:39Z")

</div>

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