For resolving mapping conflict, I was performing reindexing for log-llb index.
I used the following API's but I have been seeing one ilm error ever since the reindexing.
PUT /log-llb-testing
{
"settings": {
"index": {
"lifecycle": {
"name": "llb_policy",
"rollover_alias": "log-llb"
},
"routing": {
"allocation": {
"include": {
"_tier_preference": "data_content"
}
}
},
"refresh_interval": "1s",
"number_of_shards": "1",
"number_of_replicas": "1",
"priority": "100"
}
},
"mappings": {
"properties": {
"@timestamp": {
"type": "date"
},
"@version": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"client": {
"properties": {
"ip": {
"type": "ip"
}
}
},
"description": {
"type": "text"
},
"host": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"log_level": {
"type": "text"
},
"messaage_code": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"message": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"tags": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"time": {
"type": "date"
},
"vip": {
"type": "ip"
}
}
}
}
POST _reindex
{
"source": {
"index": "log-llb-2024.04.23-000001"
},
"dest": {
"index": "log-llb-testing"
}
}
POST _aliases
{
"actions": [
{ "add": { "index": "log-llb-testing", "alias": "log-llb" } },
{ "remove": { "index": "log-llb-2024.04.23-000001", "alias": "log-llb" } }
]
}
ERROR OF ILM ON KIBANA
{
"failed_step": "update-rollover-lifecycle-date",
"step_info": {
"type": "illegal_state_exception",
"reason": "no rollover info found for [log-llb-testing] with rollover target [log-llb], the index has not yet rolled over with that target"
}
}
ELASTICSEARCH VERSION IS 8.12