Hello all,
I am currently on Elastic Cloud (ESS) 7.9.1
Have been playing around with the ilm
settings in the Elasticsearch
output plugin in Logstash
.
The current setting that has been used and has been working is below:
output {
elasticsearch {
hosts => ["https://elastic_host_redacted.cloud.es.io:port_redacted"]
user => "user_redacted"
password => "password_redacted"
action => "create"
index => "index_name_redacted"
id => "index_id_redacted"
ilm_rollover_alias => "clean-up-alias"
ilm_pattern => "{now/d}-000001"
ilm_policy => "clean_up"
}
}
This has been working well and ok and have been seeing the roll-over indexes
. However, with deletion of the lastest roll-over index. It doesn't seem to reappear. Even after a restart of the Logstash
agent, refreshing the list of indexes etc.
Through testing also, have played around with added the ilm.enabled = > true
in the Logstsash config
but this does not seem to help anything. Would this also have an effect now with the settings or cache?
The Logstash index roll ups have been in use for a while and managed to get up to number 10 in the roll-over count. The number 10 index was the one that was deleted.. so currently the latest one is number 9. Like such:
- clean-up-alias-2020.08.05-000001
- clean-up-alias-2020.08.09-000002
... - clean-up-alias-2020.09.18-000009
- clean-up-alias-2020.09.22-000010
The number 10 index roll-over hasn't re-appeared.
I have tried this with Filebeat and Auditbeat
also, with the settings in both of there .yml files as such:
#------------------------
# ILM management
#------------------------
setup.ilm.enabled: true
setup.ilm.rollover_alias: "beats-clean-up"
setup.ilm.pattern: "{now/d}-000001"
these indexes come straight back after a restart.
Am I missing something?
Would it be because the index has been deleted it will not appear again due to the cache or something? So in turn would it mean that the ILM policy will have to be removed and then re-created? Would I need to go in to the number 9 index roll-over, enable it again and then let it roll-over again to recreate? Is this possible?
I would like to recover this back to the normal way it was working but I have a feeling I may have to start again with the ILM settings and indexing?
Any help or point in the correct direction would be greatly appreciated!
Thank you!