# Missing Alias On Rollover

**URL:** <https://forum.opensearch.org/t/missing-alias-on-rollover/21718>\
**Category:** Index Management\
**Tags:** index-management\
**Created:** [October 1, 2024, 9:02am UTC](https://forum.opensearch.org/t/missing-alias-on-rollover/21718 "2024-10-01T09:02:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bugravibes](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/bugravibes/32/8272_2.png) [@bugravibes](https://forum.opensearch.org/u/bugravibes)\
**Post date:** [October 1, 2024, 9:02am UTC](https://forum.opensearch.org/t/missing-alias-on-rollover/21718/1 "2024-10-01T09:02:05Z")

</div>

**Versions** (relevant - OpenSearch/Dashboard/Server OS/Browser):  
Opensearch-2.12.0  
Dashboard-2.12.0  
RHEL-8.8  
Microsoft Edge-128.0.2739.67

**The issue** :  
I am experiencing the “Missing rollover\_alias index setting [index=tomcat-000004]” error while rolling over the index. I’ve configured an alias named “tomcat\_write” and make Logstash index the logs to “tomcat\_write”. I am able to manually rollover my latest index (tomcat-000003 for example), the manual rollover action works fine and creates next indice tomcat-000004 and sets “is\_write\_index: true” for **only** the latest index but the rollover action does not work by itself.

Any help is appreciated,

Thanks.

**Configuration** :

> **index\_template**
>
> ```auto
> {
> "index_templates": [
> {
> "name": "tomcat_template",
> "index_template": {
> "index_patterns": [
> "tomcat-*"
> ],
> "template": {
> "settings": {
> "index": {
> "opendistro": {
> "index_state_management": {
> "rollover_alias": "tomcat_write"
> }
> }
> }
> }
> },
> "composed_of": []
> }
> }
> ]
> }
> 
> ```

> **rollover\_policy**
>
> ```auto
> {
> "id": "rollover",
> "seqNo": 90019,
> "primaryTerm": 3,
> "policy": {
> "policy_id": "rollover",
> "description": "manage log rotation",
> "last_updated_time": 1727735539094,
> "schema_version": 21,
> "error_notification": null,
> "default_state": "hot",
> "states": [
> {
> "name": "hot",
> "actions": [
> {
> "retry": {
> "count": 3,
> "backoff": "exponential",
> "delay": "1m"
> },
> "rollover": {
> "min_index_age": "1h",
> "copy_alias": false
> }
> }
> ],
> "transitions": [
> {
> "state_name": "delete_state",
> "conditions": {
> "min_index_age": "2h"
> }
> }
> ]
> },
> {
> "name": "delete_state",
> "actions": [
> {
> "retry": {
> "count": 3,
> "backoff": "exponential",
> "delay": "1m"
> },
> "delete": {}
> }
> ],
> "transitions": []
> }
> ],
> "ism_template": [
> {
> "index_patterns": [
> "tomcat*"
> ],
> "priority": 100,
> "last_updated_time": 1727726583376
> }
> ]
> }
> }
> 
> ```

> **alias**
>
> ```auto
> {
> "tomcat-000003": {
> "aliases": {
> "tomcat_write": {
> "is_write_index": false
> }
> }
> },
> "tomcat-000004": {
> "aliases": {
> "tomcat_write": {
> "is_write_index": true
> }
> }
> },
> "tomcat-000001": {
> "aliases": {
> "tomcat_write": {
> "is_write_index": false
> }
> }
> },
> "tomcat-000002": {
> "aliases": {
> "tomcat_write": {
> "is_write_index": false
> }
> }
> }
> }
> 
> ```

**Relevant Logs or Screenshots** :

 ![ism](https://us1.discourse-cdn.com/flex019/uploads/mauve_hedgehog/original/2X/0/0034e32bdaccba7f41245b94080dc18f06b81add.png)  
 ![ism2](https://us1.discourse-cdn.com/flex019/uploads/mauve_hedgehog/original/2X/2/233e273a53d5adb06c9d95b71200c43f127ac35e.png)

---

<div class="post-metadata">

**Author:** ![ssablan](https://avatars.discourse-cdn.com/v4/letter/s/ebca7d/32.png) [@ssablan](https://forum.opensearch.org/u/ssablan)\
**Post date:** [October 9, 2024, 10:17pm UTC](https://forum.opensearch.org/t/missing-alias-on-rollover/21718/2 "2024-10-09T22:17:26Z")

</div>

The rollover alias is either declared in the index template or when you assign the ISM template using the gui.

If you set it in the index template it is in the settings section:

```
    "settings": {
        "number_of_shards": 1,
        "number_of_replicas": 1,
        "plugins.index_state_management.rollover_alias": "cuss_heartbeat"
    },

```

---

<div class="post-metadata">

**Author:** ![bugravibes](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/bugravibes/32/8272_2.png) [@bugravibes](https://forum.opensearch.org/u/bugravibes)\
**Post date:** [October 13, 2024, 10:36am UTC](https://forum.opensearch.org/t/missing-alias-on-rollover/21718/3 "2024-10-13T10:36:34Z")

</div>

Thanks,  
I’ve resolved the issue by setting the rollover alias in settings.

---

<div class="post-metadata">

**Author:** ![User\_bhanu](https://avatars.discourse-cdn.com/v4/letter/u/53a042/32.png) [@User\_bhanu](https://forum.opensearch.org/u/User_bhanu)\
**Post date:** [November 8, 2024, 6:18am UTC](https://forum.opensearch.org/t/missing-alias-on-rollover/21718/4 "2024-11-08T06:18:01Z")

</div>

@bugravibes Where you have set the rollover alias? Can you send me the template after you add the alias?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/mauve_hedgehog/original/2X/3/33547ea01a5b12dcca2958411d3edd97ae2ea8c1.png) [@system](https://forum.opensearch.org/u/system)\
**Post date:** [January 7, 2025, 6:18am UTC](https://forum.opensearch.org/t/missing-alias-on-rollover/21718/5 "2025-01-07T06:18:21Z")

</div>

Closed on January 7, 2025, 6:18am UTC

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