# Index the output of the \_cat API

**URL:** <https://discuss.elastic.co/t/index-the-output-of-the-cat-api/254788>\
**Category:** Kibana\
**Created:** [November 9, 2020, 3:53pm UTC](https://discuss.elastic.co/t/index-the-output-of-the-cat-api/254788 "2020-11-09T15:53:46Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![soufian.eldouqe](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/soufian.eldouqe/32/42261_2.png) [@soufian.eldouqe](https://discuss.elastic.co/u/soufian.eldouqe)\
**Post date:** [November 9, 2020, 3:53pm UTC](https://discuss.elastic.co/t/index-the-output-of-the-cat-api/254788/1 "2020-11-09T15:53:46Z")

</div>

Hello,

I need to view the top ten list of all my indices sorted by size in Kibana (dashboad)  
for start, I can get the list of my indices sorted with the following command :

```auto
GET /_cat/indices?v&format=json&s=store.size:desc (in a list format or in json format)

```

until now no problems.

My question is how I can index the output of the \_CAT API command to a dedicated Elasticsearch index and analyse it then in Kibana(in a dashboad kibana ) ?

Thanks in advance.

---

<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:** [November 10, 2020, 2:19am UTC](https://discuss.elastic.co/t/index-the-output-of-the-cat-api/254788/2 "2020-11-10T02:19:43Z")

</div>

Why not use the [Monitoring functionality](https://www.elastic.co/guide/en/kibana/current/xpack-monitoring.html) that already exists to show this?

---

<div class="post-metadata">

**Author:** ![soufian.eldouqe](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/soufian.eldouqe/32/42261_2.png) [@soufian.eldouqe](https://discuss.elastic.co/u/soufian.eldouqe)\
**Post date:** [November 10, 2020, 8:09am UTC](https://discuss.elastic.co/t/index-the-output-of-the-cat-api/254788/3 "2020-11-10T08:09:54Z")

</div>

Because I need to do some filters, sorts, ...  
And I want to visualize the data in graphs

---

<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:** [November 10, 2020, 7:55pm UTC](https://discuss.elastic.co/t/index-the-output-of-the-cat-api/254788/4 "2020-11-10T19:55:11Z")

</div>

Ok, but if you are using the Monitoring functionality, then that's already there in the `.monitoring-*` indices.

---

<div class="post-metadata">

**Author:** ![soufian.eldouqe](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/soufian.eldouqe/32/42261_2.png) [@soufian.eldouqe](https://discuss.elastic.co/u/soufian.eldouqe)\
**Post date:** [November 12, 2020, 8:58am UTC](https://discuss.elastic.co/t/index-the-output-of-the-cat-api/254788/5 "2020-11-12T08:58:19Z")

</div>

> [@warkolm](#):
>
> .monitoring-\*

But with the .monitoring-\* I cannot have the list of my indices with their size ?

---

<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:** [December 10, 2020, 8:58am UTC](https://discuss.elastic.co/t/index-the-output-of-the-cat-api/254788/6 "2020-12-10T08:58:26Z")

</div>

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