Is there a way to apply a life cycle management policy only to metricbeat-* pattern index in 7.4 logstash/Elasticsearch/kibana cluster to delete any index older than 30 days?
Thanks, here is what I have done
- Created a new lifecycle management policy named it metricbeat_cleaup that delete index every 7days
- Create a new index template that associate new created daily index to my policy
PUT _template/metricbeat_template
{
"index_patterns": ["metricbeat-*"],
"settings": {
"number_of_shards": 3,
"index.lifecycle.name": "metricbeat_cleanup"
}
}
Will be monitoring if all went Ok.
Thanks for your help