Rollover alias to new index

hi, I created a rollover index and alias. The alias is pointing to new as well as old index when i try to read data from alias. how can i remove the old index from alias?


Welcome to our community! :smiley: describes that process.

Hi, i created an ILM policy to rollover, then a template and last bootstrap.
All is working fine and alias is writing to new index on rollover.
But i need to remove the old index also, so if i read the alias it points to new index only.
Old indexes stay as it is. Can i do in one of the 3 steps i mentioned? Thanks

Do you want to remove the index from the write alias?

no, i want the alias when read, just points to latest write index, not the old indexes.

It'd help if you shared the policy you are using.

"policy": {
"policy_id": "rollover_policy",
"description": "roll over after 1000 docs",
"last_updated_time": 1595624651960,
"schema_version": 1,
"error_notification": null,
"default_state": "hot",
"states": [
"name": "hot",
"actions": [
"rollover": {
"min_doc_count": 1000

Ok, thanks. What about the index template you used?

Please format your code/logs/config using the </> button, or markdown style back ticks. It helps to make things easy to read which helps us help you :slight_smile:

PUT _template/rollover_template
"index_patterns": ["test-es-index_dt-*"],
"settings": {
"number_of_shards": 5,
"number_of_replicas": 1,
"index.opendistro.index_state_management.policy_id": "rollover_policy",
"index.opendistro.index_state_management.rollover_alias": "test-es-index_dt"

Oh, is this open distro?

yes this open distro & i am using it on AWS

Ah ok, then this is not ILM, it's something that they've built for it and we cannot provide support for it sorry.

But can you suggest on the strategy or concept to achieve this in ILM?

You won't be able to use ILM, it's not part of open distro.

I was able to use and define the ILM inside AWS kibana.

If you are indeed using open distro, the ILM that we build and release is not part of it. As I understand it, they built their own, similar thing.

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