Lifecycle error

No rollover info found for [name_index-%{+YYYY.MM.dd}-000001] with rollover target [index-alias], the index has not yet rolled over with that target. The next day I get this error. On the first day of operation, no errors are observed. How can this situation be resolved?
I created config "index-000001"

PUT all_index-000001
{
  "aliases": {
    "index-alias": {
      "is_write_index": true
    }
  }
}

I create aliases "index-alias"

POST _aliases
{
    "actions" : [
        {
           "add" : {
                 "index" : "all_index-000001",
                 "alias" : "index-alias",
                 "is_write_index" : true
            }
        }
]
}

Add template

PUT /_index_template/all_template
{
  "index_patterns" : ["log*"],
  "priority" : 1,
  "template": {
    "settings" : {
    "index.lifecycle.name": "log_hot_warm_policy", 
    "index.lifecycle.rollover_alias": "index-alias",
    "number_of_shards" : 5
},
    "aliases" : {
  "index-alias": {}
  },
"mappings" : {
      "_doc": {
    "_routing": {
      "required": false
    },
    "numeric_detection": false,
    "dynamic_date_formats": [
      "strict_date_optional_time",
      "yyyy/MM/dd HH:mm:ss Z||yyyy/MM/dd Z"
    ],
    "_source": {
      "excludes": [],
      "includes": [],
      "enabled": true
    },
    "dynamic": true,
    "dynamic_templates": [],
    "date_detection": true
}
    }         
  }
}

Added a configuration, I will be glad if you comment on it, I thought it would help in solving the problem

PUT /_cluster/settings
{
  "persistent" : {
    "cluster.routing.allocation.disk.threshold_enabled" : "true"
  }
}
 
PUT /_cluster/settings
{
"persistent": {
"action.auto_create_index": true
}
}

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