# Problem with ILM

**URL:** <https://discuss.elastic.co/t/problem-with-ilm/255946>\
**Category:** Elasticsearch\
**Tags:** ilm-index-lifecycle-management\
**Created:** [November 19, 2020, 8:24am UTC](https://discuss.elastic.co/t/problem-with-ilm/255946 "2020-11-19T08:24:39Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![BoKu](https://avatars.discourse-cdn.com/v4/letter/b/bc8723/32.png) [@BoKu](https://discuss.elastic.co/u/BoKu)\
**Post date:** [November 19, 2020, 8:24am UTC](https://discuss.elastic.co/t/problem-with-ilm/255946/1 "2020-11-19T08:24:39Z")

</div>

Hello,

i have a problem understanding ILM with index alias on an custom created index. I have an custom index oracle-logs, which is feeded by logstash (which gets the documents from filebeat), it then sends the documents to an index oracle-logs, this is working.  
But, i got this error in "index managment":

```auto
Index lifecycle error

illegal_argument_exception: index.lifecycle.rollover_alias [oraclelogs] does not point to index [oracle-logs-2018.08-000001]

```

I asume, i have a problem with my alias, but i don't understand how to create the correct alias.

Kind regards  
Boris

---

<div class="post-metadata">

**Author:** ![widhalmt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/widhalmt/32/8237_2.png) [@widhalmt](https://discuss.elastic.co/u/widhalmt)\
**Post date:** [November 19, 2020, 8:29am UTC](https://discuss.elastic.co/t/problem-with-ilm/255946/2 "2020-11-19T08:29:36Z")

</div>

Hi,

Could you show us the Logstash configuration of the `elasticsearch` output? Please remember, to remove or mask any password.

Cheers,  
Thomas

---

<div class="post-metadata">

**Author:** ![BoKu](https://avatars.discourse-cdn.com/v4/letter/b/bc8723/32.png) [@BoKu](https://discuss.elastic.co/u/BoKu)\
**Post date:** [November 19, 2020, 9:49am UTC](https://discuss.elastic.co/t/problem-with-ilm/255946/3 "2020-11-19T09:49:39Z")

</div>

Hi Thomas,

this is my logstash output:

```auto
output {
  if "oracle-input" in [tags] {
  stdout { codec => rubydebug }
  elasticsearch {
    hosts => ["https://elasticserver1:9200","https://elasticserver2:9200","https://elasticserver3:9200"]
    #index => "%{[@metadata][beat]}-%{[@metadata][version]}-%{+YYYY.MM.dd}"
    index => "oracle-logs-%{+YYYY.MM}-000001"
    user => elastic
    password => "<PASSWORD>"
    ssl => true
    cacert => "/path/to/cert.cer"
  }
}
}

```

Best regards  
Boris

---

<div class="post-metadata">

**Author:** ![widhalmt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/widhalmt/32/8237_2.png) [@widhalmt](https://discuss.elastic.co/u/widhalmt)\
**Post date:** [November 19, 2020, 10:11am UTC](https://discuss.elastic.co/t/problem-with-ilm/255946/4 "2020-11-19T10:11:17Z")

</div>

Please replace your `index` setting with `ilm_` settings.

> **[Elasticsearch output plugin | Logstash Reference \[7.10\] | Elastic](https://www.elastic.co/guide/en/logstash/current/plugins-outputs-elasticsearch.html#plugins-outputs-elasticsearch-ilm_enabled)**

And the following options.

You should be good with replacing `index =>` with the following

```auto
ilm_rollover_alias => "oracle-logs"

```

The `ilm_pattern` setting has a default that will do what you tried with your `index` setting.

---

<div class="post-metadata">

**Author:** ![BoKu](https://avatars.discourse-cdn.com/v4/letter/b/bc8723/32.png) [@BoKu](https://discuss.elastic.co/u/BoKu)\
**Post date:** [December 1, 2020, 7:10am UTC](https://discuss.elastic.co/t/problem-with-ilm/255946/5 "2020-12-01T07:10:48Z")

</div>

Hi Thomas,  
thanks for your advise.  
I changed the `index` to `ilm_rollover_alias`, a few days ago, and at first i thought that worked, but i just saw that see error is still there:

```auto
illegal_argument_exception: index.lifecycle.rollover_alias [oraclelogs] does not point to index [oracle-logs-2020.11.26-000001]

```

Kind regards  
Boris

---

<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:** [December 29, 2020, 7:11am UTC](https://discuss.elastic.co/t/problem-with-ilm/255946/6 "2020-12-29T07:11:23Z")

</div>

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