I have issue with rollover using date math Elastic ver 7.13. Tried all recommendations from this site but it still not rollover using new date.Please tell me what wrong configured?
My configuration:
Template:
Preformatted text
PUT /_index_template/rwr_template
{
"index_patterns": [
"*base_elements_rwr*"
],
"priority": 0,
"template": {
"settings": {
"index.lifecycle.name": "rwr_size_policy",
"index.lifecycle.rollover_alias": "rwr_alias",
"index.lifecycle.parse_origination_date":true,
"number_of_shards": 1,
"number_of_replicas": 0
},
"mappings": {
"properties": {...
Policy:
PUT _ilm/policy/rwr_size_policy
{
"policy": {
"phases": {
"hot": {
"actions": {
"rollover": {
"max_size": "1gb"
}
}
},
"delete": {
"min_age": "3d",
"actions": {
"delete": {}
}
}....
Create index by date math:
Preformatted text
PUT %3Cbase_elements_rwr-%7Bnow%2Fd%7D-000001%3E
As result :base_elements_rwr-2021.08.12-000001
Alias:
POST _aliases
{
"actions": [
{
"add": {
"index": "base_elements_rwr-2021.08.12-000001",
"alias": "rwr_alias",
"is_write_index" : true
}
}.....
Explain command result
{
"indices" : {
"base_elements_rwr-2021.08.12-000001" : {
"index" : "base_elements_rwr-2021.08.12-000001",
"managed" : true,
"policy" : "rwr_size_policy",
"lifecycle_date_millis" : 1628726400000,
"age" : "6.7h",
"phase" : "hot",
"phase_time_millis" : 1628748130406,
"action" : "complete",
"action_time_millis" : 1628750188345,
"step" : "complete",
"step_time_millis" : 1628750188345,
"phase_execution" : {
"policy" : "rwr_size_policy",
"phase_definition" : {
"min_age" : "0ms",
"actions" : {
"rollover" : {
"max_size" : "1gb"
}
}
},
"version" : 1,
"modified_date_in_millis" : 1628747995514
}........