I believe you're getting that error when rolling over? That's because your index name doesn't have the numerical ending (eg. logstash-000001).
I believe your index bootstrapping was not correct either because the alias doesn't have the is_write_index option configured to true (see Tutorial: Automate rollover with ILM | Elasticsearch Guide [7.13] | Elastic fro more details on bootstrapping).
Alternatively, use data streams to avoid these bootstrapping and naming nuances.
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.