Setting up Rollover Index

Hello, we keep running into issues trying to setup rollover index. I am not sure how to go about setting up the rollover. We have already have a template added to the elastic servers.

curl -XPUT "hostname:9200/_template/indexalias_template" -H 'Content-Type: application/json' -d'
"index_patterns": [
"order": 100000,
"settings": {
"number_of_shards": 2,
"number_of_replicas": 1
"aliases" : {
"indexalias" : {}

However, we've also tried running

curl -X POST "hostname:9200/indexalias/_rollover?pretty" -H 'Content-Type: application/json' -d'
"conditions": {
"max_age": "15m"


curl -X PUT indexalias-2019.10.09
"aliases": {
"is_write_index": true

However, this is giving errors such as like the index name not being able to match the pattern. The indices were created before running the last 2 curl commands i posted. The 1st was run before I ran anything. What exactly is the proper process? We want to have, of course, the alias rollover from the old index to the new index. everyday. We set it to 15 min here but will look to have it set up for 1d (1 day).

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