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:
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:
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:
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 ?