Hello all,
I keep having errors in the rollover and I don't know how to fix them.
I have 2 elastic node and I configure it in HOT-WARM.
The index are automatically created by filebeat - logstash and they are split by day ex. logs_2020-05-22, logs_2020-05-21, etc...
Once index have only 1 shards and its size is approx. 5.5Gb
I would like that all index older than 30 days are moved on warm node and after 90 days the index will be deleted.
I have create this ILM:
`PUT _ilm/policy/hot-warm-90days-delete
`{
` "policy": {
` "phases": {
` "hot": {
` "min_age": "0ms",
` "actions": {
` "rollover": {
` "max_age": "30d"
` },
` "set_priority": {
` "priority": 100
` }
` }
` },
` "warm": {
` "min_age": "30d",
` "actions": {
` "allocate": {
` "include": {},
` "exclude": {},
` "require": {
` "box_type": "warm"
` }
` },
` "set_priority": {
` "priority": 50
` }
` }
` },
` "delete": {
` "min_age": "90d",
` "actions": {
` "delete": {}
` }
` }
` }
` }
`}
Now I have multiple issue.
For example, if I not set rollover alias:
`setting [index.lifecycle.rollover_alias] for index [logs_2020-03-30] is empty or not defined
If I set rollover alias:
`index.lifecycle.rollover_alias [hot_warm] does not point to index
I try to set index aliases and set rollover alias in ILM template and index template
I try to set only rollover alias.
I try to set only index aliases.
But every attempt was unsuccessful.
In my last attempt I set only for index logs_2020-03-31 aliases and rollover alias and the rollover complete, the index was moved on warm node.
How I can automate the rollover for all index?
Please could help me