Using rollover got error


(flyfish) #1

Hi,

I just created an alias which name is "squid-log-alias" for my index "squid-log", and when I setup rollover API and I got the error:

POST /squid-log-alias/_rollover
{
"conditions":{
"max_age": "7d",
"max_docs": 1000
}

}

{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "index name [squid-log] does not match pattern '^.-\d+$'"
}
],
"type": "illegal_argument_exception",
"reason": "index name [squid-log] does not match pattern '^.
-\d+$'"
},
"status": 400
}

Do you know how?


(Aaron Mildenstein) #2

The index behind the alias needs to end in an incrementable number. See https://www.elastic.co/guide/en/elasticsearch/reference/5.4/indices-rollover-index.html


(system) #3

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