Not able to rollover after 1 day
I have set parse_origination_date to true
the index is like access-log-appname-2022.07.06-000001
{
"policy":{
"phases":{
"hot":{
"min_age":"0ms",
"actions":{
"rollover":{
"max_age":"1d"
},
"set_priority":{
"priority":100
}
}
},
"warm":{
"min_age":"1d",
"actions":{
"set_priority":{
"priority":50
}
}
},
"delete":{
"min_age":"2d",
"actions":{
"delete":{
"delete_searchable_snapshot":true
}
}
}
}
}
}
{
"indices": {
"access-log-w302-2022.07.06-000001": {
"index": "access-log-appname-2022.07.06-000001",
"managed": true,
"policy": "7-days-access-log",
"lifecycle_date_millis": 1657065600000,
"age": "1.08d",
"phase": "hot",
"phase_time_millis": 1657095639572,
"action": "rollover",
"action_time_millis": 1657095639972,
"step": "check-rollover-ready",
"step_time_millis": 1657095639972,
"phase_execution": {
"policy": "7-days-access-log",
"phase_definition": {
"min_age": "0ms",
"actions": {
"set_priority": {
"priority": 100
},
"rollover": {
"max_age": "1d"
}
}
},
"version": 1,
"modified_date_in_millis": 1657095074154
}
}
}
}
{
"template": {
"settings": {
"index": {
"lifecycle": {
"name": "7-days-access-log",
"parse_origination_date": "true",
"rollover_alias": "access-log"
},
"number_of_shards": "1"
}
},
"mappings": {
"properties": {
"@timestamp": {
"type": "date"
},
"aa": {
"type": "text"
}
}
},
"aliases": {}
}
}
I expect it will create a new index access-log-appname-2022.07.07-000001 after it reach the max day.
or I understand it wrong, plz help