# Problem with logs ilm policy elk7.9.1

**URL:** <https://discuss.elastic.co/t/problem-with-logs-ilm-policy-elk7-9-1/260455>\
**Category:** Kibana\
**Tags:** ilm-index-lifecycle-management\
**Created:** [January 7, 2021, 2:56pm UTC](https://discuss.elastic.co/t/problem-with-logs-ilm-policy-elk7-9-1/260455 "2021-01-07T14:56:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rollup\_eval](https://avatars.discourse-cdn.com/v4/letter/r/e274bd/32.png) [@Rollup\_eval](https://discuss.elastic.co/u/Rollup_eval)\
**Post date:** [January 7, 2021, 2:56pm UTC](https://discuss.elastic.co/t/problem-with-logs-ilm-policy-elk7-9-1/260455/1 "2021-01-07T14:56:01Z")

</div>

```auto
Hi,

I have upgrade my stack from elk6.7.1 to elk7.9.1.

In my stack index name are : logs-kelogs-pltf-YYYY.MM.dd.hh

These indices are not managed by rollover and ilm policies.
Logtash creates each hour a new index logs-kelogs-pltf-YYYY.MM.dd.hh 
History is managed by curator.

My problem is that with elk7.9.1:
1 an ilm policy with rollover(logs) is set by default upon any index : logs-*-* with datastream. 
2 my indexs logs-kelogs-pltf-YYYY.MM.dd.hh are not compliant with this policy, logstash fails trying to insert data in datastream like in .ds- logs-kelogs-pltf-YYYY.MM..dd.hh.

I would avoid to use this ilm policy (or any ilm policy) for my indexs: logs-kelogs-pltf-YYYY.MM.dd.h
I have try to modify the template `logs` to discard my indexs:

![image|690x189](upload://74e52IvquKgCm9Q2mvfBJ7qPlR7.png) 

![image|690x121](upload://3iKtDKwwaXNxNs5audY0Ahq2tC0.png) 

But when I try to save the modification : save button turn round (saving label)

Is there a simple way to avoid that logs ilm policy applies on my indexs

Thanks

```

---

<div class="post-metadata">

**Author:** ![Rollup\_eval](https://avatars.discourse-cdn.com/v4/letter/r/e274bd/32.png) [@Rollup\_eval](https://discuss.elastic.co/u/Rollup_eval)\
**Post date:** [January 7, 2021, 4:38pm UTC](https://discuss.elastic.co/t/problem-with-logs-ilm-policy-elk7-9-1/260455/2 "2021-01-07T16:38:33Z")

</div>

Finally , I create new index template (not legacy) overriding logs templtaes and it works (solved)

---

<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:** [January 11, 2021, 12:24am UTC](https://discuss.elastic.co/t/problem-with-logs-ilm-policy-elk7-9-1/260455/3 "2021-01-11T00:24:16Z")

</div>

Thanks for sharing your solution.

FYI your first post is really hard to read with that formatting 🙂

---

<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:** [February 8, 2021, 12:24am UTC](https://discuss.elastic.co/t/problem-with-logs-ilm-policy-elk7-9-1/260455/4 "2021-02-08T00:24:31Z")

</div>

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