# Llegal\_argument\_exception: index.lifecycle.rollover\_alias \[syslog\] does not point to index \[syslog-2022-06-22\]

**URL:** <https://discuss.elastic.co/t/llegal-argument-exception-index-lifecycle-rollover-alias-syslog-does-not-point-to-index-syslog-2022-06-22/307857>\
**Category:** Elasticsearch\
**Tags:** ilm-index-lifecycle-management\
**Created:** [June 22, 2022, 9:24am UTC](https://discuss.elastic.co/t/llegal-argument-exception-index-lifecycle-rollover-alias-syslog-does-not-point-to-index-syslog-2022-06-22/307857 "2022-06-22T09:24:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lucy\_S](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lucy_s/32/107417_2.png) [@Lucy\_S](https://discuss.elastic.co/u/Lucy_S)\
**Post date:** [June 22, 2022, 9:24am UTC](https://discuss.elastic.co/t/llegal-argument-exception-index-lifecycle-rollover-alias-syslog-does-not-point-to-index-syslog-2022-06-22/307857/1 "2022-06-22T09:24:34Z")

</div>

Hi all,  
i got this message on all index

> llegal\_argument\_exception: index.lifecycle.rollover\_alias [syslog] does not point to index [syslog-2022-06-22]

configs:

```auto
curl -X POST "localhost:5601/api/index_patterns/index_pattern" -H 'kbn-xsrf: true' -H 'Content-Type: application/json' -d'
{
  "index_pattern": {
     "title": "syslog-*",
	 "timeFieldName": "@timestamp"
  }
}
'

```

policy:

```auto

curl -X PUT "localhost:9200/_ilm/policy/syslog-policy" -H 'Content-Type: application/json' -d'
{
  "policy": {
    "phases": {
      "hot": {
        "min_age": "0ms",
        "actions": {
          "set_priority": {
            "priority": 100
          },
          "rollover": {
            "max_primary_shard_size": "10gb",
            "max_age": "1d"
          }
        }
      },
      "warm": {
        "min_age": "2d",
        "actions": {
          "set_priority": {
            "priority": 50
          }
        }
      },
      "cold": {
        "min_age": "14d",
        "actions": {
          "readonly": {},
          "set_priority": {
            "priority": 0
          },
          "freeze": {}
        }
      },
      "delete": {
        "min_age": "60d",
        "actions": {
          "delete": {
            "delete_searchable_snapshot": true
          }
        }
      }
    }
  }
}
'

```

index\_template:

```auto
curl -X PUT "localhost:9200/_index_template/syslog?pretty" -H 'Content-Type: application/json' -d'
{
  "index_patterns" : ["syslog-*"],
  "priority" : 1,
  "template": {
    "settings" : {
	  "refresh_interval": "5s",
      "number_of_shards" : 1,
	  "number_of_replicas": 0,
	  "lifecycle": {
             "name": "syslog-policy",
             "rollover_alias": "syslog"
          }	  
    }
  }
}
'

```

whats missing or what i doing wrong ?

---

<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:** [July 20, 2022, 9:25am UTC](https://discuss.elastic.co/t/llegal-argument-exception-index-lifecycle-rollover-alias-syslog-does-not-point-to-index-syslog-2022-06-22/307857/2 "2022-07-20T09:25:20Z")

</div>

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