PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Tuesday, October 25, 2022

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

 October 25, 2022     elasticsearch, elasticsearch-ilm, kibana     No comments   

Issue

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?


Solution

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             
    }
  }
}


Answered By - Sagar Patel
Answer Checked By - Mary Flores (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing