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)
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.