Hi.
I'd like to apply the same Index Lifecycle Management policy to all indices with a certain pattern. Specifically I need to do this for all of our beats {metricbeat-, auditbeat-, etc.}. I need to perform this task via the API and not Kibana.
This does not work:
PUT _template/filebeat_rollover_template
{
"index_patterns": ["filebeat-*"],
"settings": {
"number_of_shards": 1,
"number_of_replicas": 1,
"index.lifecycle.name": "beat_default_lifecycle_policy",
}
}
Any suggestions?
Thank you!