Delete index older than a week

All will depend on index pattern that you have mentioned while creating index template, IF your logstash has created the index with matching pattern then all these settings you have specified in template will be attached automatically

ok. so it wont delete with the indices created till now? logstash is creating the indices whose patterns ive added in the template. also do i need to add the ilm_policy to logstash config file also?

No Need to add ilm to logstash config, And ILM will be applied to new indices only. You have to apply ILM manually to old indices.

PUT <index_name>
  "settings": {
    "": "<policy_name>" 

ok thank you so much for your time and quick response!

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