# How to monitor ILM in canvas

**URL:** <https://discuss.elastic.co/t/how-to-monitor-ilm-in-canvas/268879>\
**Category:** Kibana\
**Tags:** canvas\
**Created:** [March 31, 2021, 8:46am UTC](https://discuss.elastic.co/t/how-to-monitor-ilm-in-canvas/268879 "2021-03-31T08:46:43Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheHunter1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thehunter1/32/80190_2.png) [@TheHunter1](https://discuss.elastic.co/u/TheHunter1)\
**Post date:** [March 31, 2021, 8:46am UTC](https://discuss.elastic.co/t/how-to-monitor-ilm-in-canvas/268879/1 "2021-03-31T08:46:43Z")

</div>

Hello,

I would like to create a Canvas where I can see the number of indexs in `hot` `warm` and `cold` and the the total disk used in each phase., and for example the name of index which has been deleted in the last 24 hours ...etc

Could you tell me please how can I do that, and in which index I can find these information to be able to use SQL queries ?

Thanks for your help

---

<div class="post-metadata">

**Author:** ![wylie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wylie/32/81794_2.png) [@wylie](https://discuss.elastic.co/u/wylie)\
**Post date:** [March 31, 2021, 4:14pm UTC](https://discuss.elastic.co/t/how-to-monitor-ilm-in-canvas/268879/2 "2021-03-31T16:14:41Z")

</div>

It looks like ILM does not manage its lifecycle using Elasticsearch indices, so you can't query it with SQL. There are publicly exposed ILM APIs that you could use to monitor ILM, but you would need to index the data yourself and then query it.

---

<div class="post-metadata">

**Author:** ![TheHunter1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thehunter1/32/80190_2.png) [@TheHunter1](https://discuss.elastic.co/u/TheHunter1)\
**Post date:** [April 1, 2021, 7:10am UTC](https://discuss.elastic.co/t/how-to-monitor-ilm-in-canvas/268879/3 "2021-04-01T07:10:36Z")

</div>

Thanks for your answer @wylie,  
Is it possible de get these information by sending requests to elasticsearch, like with `curl` or in the `Dev Tool` of kibana ?

---

<div class="post-metadata">

**Author:** ![wylie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wylie/32/81794_2.png) [@wylie](https://discuss.elastic.co/u/wylie)\
**Post date:** [April 1, 2021, 2:02pm UTC](https://discuss.elastic.co/t/how-to-monitor-ilm-in-canvas/268879/4 "2021-04-01T14:02:46Z")

</div>

Yes, but there is not a default way to send POST requests from Canvas to ES.

---

<div class="post-metadata">

**Author:** ![TheHunter1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thehunter1/32/80190_2.png) [@TheHunter1](https://discuss.elastic.co/u/TheHunter1)\
**Post date:** [April 2, 2021, 9:27am UTC](https://discuss.elastic.co/t/how-to-monitor-ilm-in-canvas/268879/5 "2021-04-02T09:27:04Z")

</div>

Thanks for informattion @wylie,

Can you please tell me how to send POST requests to the API to get these information !  
Once I get these information, I will see with my team if they can develop a view for me to get what I want in dashboards

Thanks again.

---

<div class="post-metadata">

**Author:** ![wylie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wylie/32/81794_2.png) [@wylie](https://discuss.elastic.co/u/wylie)\
**Post date:** [April 2, 2021, 1:45pm UTC](https://discuss.elastic.co/t/how-to-monitor-ilm-in-canvas/268879/6 "2021-04-02T13:45:33Z")

</div>

You can't do POST requests from Canvas, unless you register a custom Kibana plugin that registers a new function that is available in Canvas.

If you need to monitor ILM status, you need to set up some automation outside Kibana & Elasticsearch.

---

<div class="post-metadata">

**Author:** ![TheHunter1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thehunter1/32/80190_2.png) [@TheHunter1](https://discuss.elastic.co/u/TheHunter1)\
**Post date:** [April 2, 2021, 1:50pm UTC](https://discuss.elastic.co/t/how-to-monitor-ilm-in-canvas/268879/7 "2021-04-02T13:50:13Z")

</div>

Yes I would like to monitor it from outside, by sending some curl requests as it's impossible to use it with canvas

---

<div class="post-metadata">

**Author:** ![wylie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wylie/32/81794_2.png) [@wylie](https://discuss.elastic.co/u/wylie)\
**Post date:** [April 2, 2021, 2:36pm UTC](https://discuss.elastic.co/t/how-to-monitor-ilm-in-canvas/268879/8 "2021-04-02T14:36:13Z")

</div>

The docs are here: [Index lifecycle management APIs | Elasticsearch Guide [7.12] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/index-lifecycle-management-api.html)

---

<div class="post-metadata">

**Author:** ![TheHunter1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thehunter1/32/80190_2.png) [@TheHunter1](https://discuss.elastic.co/u/TheHunter1)\
**Post date:** [April 4, 2021, 4:32pm UTC](https://discuss.elastic.co/t/how-to-monitor-ilm-in-canvas/268879/9 "2021-04-04T16:32:53Z")

</div>

Thanks @wylie

---

<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:** [May 2, 2021, 4:33pm UTC](https://discuss.elastic.co/t/how-to-monitor-ilm-in-canvas/268879/10 "2021-05-02T16:33:49Z")

</div>

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