I am unable to apply ILM policy to custom index coming from Openshift cluster log forwarding. As It create index with app-write and does not have any aliases.
Hi @lalchand_rajak ,
Have you tried using an index template ?
By doing so you can instruct elasticsearch that every time a new index is created with certain pattern it will be given settings and mappings as stated in the template.
For example, inex template for all indices starts with app-write will get ILM policy test-policy:
Hi,
Now your index has ILM policy linked to it (as opposed to the initial state where it wasn't managed).
The error you see occurs because your ILM policy has rollover action in it but you index was not preconfigured for rollover.
here is what you can do:
don't use rollover for your index and add date or any other name identifier for you index - you will beable to move it to warmer nodes over time and delete it eventually.
bootsrap your index for rollover. Tutorial hereTutorial here.
I tried above 2 steps but does not work. The index require aliases. Once I added manually index get deleted but once deleted the index then again index does not have the aliases. how can I add aliases in template itself in below
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.