I am getting ILM errors on all of my indexes. For example:
illegal_argument_exception: index.lifecycle.rollover_alias [ucv-voice-events-cube] does not point to index [ucv-voice-events-cube-2020.08.28]
In my case both the index and the alias exist. The ILM profile should roll over each index at max 50GB or 30 days. However the indexes are only rolling over each day.
I think that the problem is I'm not appending -000N to the end of the index. Does anyone know the custom Logstash pattern to get this working? Right now we are consuming from a kafka topic and using that name and the data to create the index. It does roll over every day, but I cannot bind it to an ILM profile to keep the index open until 50GB size is reached and then delete it after 15 days have passed.
I did read that documentation, but unfortunately the example there didn't work (see above) and there is no good, working example on how to do Logstash + custom index + ILM. If I uncomment the lines in my example above (to make custom aliases and policies), I get an exception. As-is Logstash ignores the ilm_pattern => "000001" and I just get the default YYYY-mm-dd daily rollover However when it tries the ILM profile I get the error: " Illegal_argument_exception: index.lifecycle.rollover_alias does not point to index" probably because there isn't the expected -00000N after the index name-date format.
Default filebeat, metricbeat and Logstash ILM finally works in current ElasticStack versions (this wasn't the case for several releases) but I cannot figure out how to get custom Logstash indexes to work with ILM despite reading all the documentation, tutorials, and stack overflow and this forum.
I think I've got to believe that it doesn't work and I'll just have to manage the life of my daily indexes with an external cronjob and the API.
Thanks for the suggestions though, I just wish I could get this working as-built in ElasticSearch.
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.