# Illegal\_argument\_exception error

**URL:** <https://discuss.elastic.co/t/illegal-argument-exception-error/277816>\
**Category:** Kibana\
**Tags:** ilm-index-lifecycle-management\
**Created:** [July 5, 2021, 10:56am UTC](https://discuss.elastic.co/t/illegal-argument-exception-error/277816 "2021-07-05T10:56:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![keyofstarrysky973](https://avatars.discourse-cdn.com/v4/letter/k/e5b9ba/32.png) [@keyofstarrysky973](https://discuss.elastic.co/u/keyofstarrysky973)\
**Post date:** [July 5, 2021, 10:56am UTC](https://discuss.elastic.co/t/illegal-argument-exception-error/277816/1 "2021-07-05T10:56:44Z")

</div>

Hello Team. I'm trying to implement a basic lifecycle policy, in order to delete an index after X hours (this lifecycle policy is just for testing). In my setup, I'm using to beats agents (Winlogbeat and Metricbeat).

I have specified 2 different lifecycle policies with 2 different names, but the two policies essentially have the same function to delete after x hours (but not the same length of time). I'm just starting with ILM, however I'm getting the following error for both policies :

```auto
illegal_argument_exception: index.lifecycle.rollover_alias [metricbeat-7.10] does not point to index [metricbeat-7.10]

illegal_argument_exception: index.lifecycle.rollover_alias [winlogbeat-7.10] does not point to index [winlogbeat-7.10]

```

Also, this error does not happen every time. Sometimes it can go for many minutes, even hours, without showing any ilm errors in Kibana \< Stack Management \< Index Management. Then again the errors reappear.

I have no idea what is the meaning of these errors, and why they don't come up all the time ? Pls help.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 5, 2021, 11:35pm UTC](https://discuss.elastic.co/t/illegal-argument-exception-error/277816/2 "2021-07-05T23:35:23Z")

</div>

Can you share your policies please.

---

<div class="post-metadata">

**Author:** ![keyofstarrysky973](https://avatars.discourse-cdn.com/v4/letter/k/e5b9ba/32.png) [@keyofstarrysky973](https://discuss.elastic.co/u/keyofstarrysky973)\
**Post date:** [July 9, 2021, 1:15pm UTC](https://discuss.elastic.co/t/illegal-argument-exception-error/277816/3 "2021-07-09T13:15:40Z")

</div>

Hi, so as I'm still in a testing environment, I decided to delete the two indices corresponding to Winlogbeat and Metricbeat. After deleting and restarting the agents, the lifecycle policies are now working.

Still don't know what was the issue.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 6, 2021, 1:16pm UTC](https://discuss.elastic.co/t/illegal-argument-exception-error/277816/4 "2021-08-06T13:16:26Z")

</div>

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