How to check what storage phase is an index in (hot, worm...) - Elastic Search

1.1k views Asked by At

I added a life cycle policy and want to ensure it takes effect and the indices are in the 'warm' phase as they should be.

I couldn't find what is the command to view that information. Is it possible? And if so, how?

2

There are 2 answers

0
Sagar Patel On BEST ANSWER

You can use Explain Lifecycle API for checking current phase of Index.

GET my-index-000001/_ilm/explain
{
  "indices": {
    "my-index-000001": {
      "index": "my-index-000001",
      "index_creation_date_millis": 1538475653281,  
      "time_since_index_creation": "15s",           
      "managed": true,                              
      "policy": "my_policy",                        
      "lifecycle_date_millis": 1538475653281,       
      "age": "15s",                                 
      "phase": "new",  <--- this is indicating phase of index. 
      "phase_time_millis": 1538475653317,           
      "action": "complete"
      "action_time_millis": 1538475653317,          
      "step": "complete",
      "step_time_millis": 1538475653317             
    }
  }
}
0
Hasan URAL On

So can I filter it?

In Kibana Index Management, I can filter "ilm.phase:(warm)" from the lifecycle phase section.

Can we use a similar filter here?

Unfortunately, I did not see such an option in the documentation.