# X Index lifecycle error illegal\_argument\_exception: index name \[X\] does not match pattern "^\*-\\d+$"

**URL:** <https://discuss.elastic.co/t/x-index-lifecycle-error-illegal-argument-exception-index-name-x-does-not-match-pattern-d/369873>\
**Category:** Elasticsearch\
**Tags:** ilm-index-lifecycle-management\
**Created:** [October 31, 2024, 11:26am UTC](https://discuss.elastic.co/t/x-index-lifecycle-error-illegal-argument-exception-index-name-x-does-not-match-pattern-d/369873 "2024-10-31T11:26:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kishorkumar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kishorkumar/32/132930_2.png) [@kishorkumar](https://discuss.elastic.co/u/kishorkumar)\
**Post date:** [October 31, 2024, 11:26am UTC](https://discuss.elastic.co/t/x-index-lifecycle-error-illegal-argument-exception-index-name-x-does-not-match-pattern-d/369873/1 "2024-10-31T11:26:27Z")

</div>

I have a rollup job set up to send logs from system metrics to a standard index called `rolled-metrics-system-rollup`. I encountered an error during the lifecycle rollover process and, upon investigation, found the following error: **"Error: `rollover_alias` does not point to an index"**. After checking the index settings, I noticed that while the lifecycle policy was applied, the rollover alias was missing.

To resolve this, I referred to a solution shared on the Elastic community's YouTube channel in this [video](https://www.youtube.com/watch?v=NKSe67x7aw8&list=PL_mJOmq4zsHbQlfEMEh_30_LuV_hZp-3d&index=6to) and applied the solution as suggested. However, I am now encountering a new error:

**"Index lifecycle error `illegal_argument_exception`: index name `[rolled-metrics-system-rollup]` does not match pattern `^*-\d+$`"**

### Potential Solutions I’m Considering:

1. Renaming the existing index directly isn't possible, correct?
2. Updating the rollup job itself also seems unfeasible, correct?
3. Therefore, the only solution might be to create a new rollup job and specify the output index name as something like **`rolled-metrics-system-rollup-00001`** , correct?

Could you guide me on how best to proceed here?

#Elastic Stack#elasticsearch #ilm-index-lifecycle-management #rollups
