Hello there,
I am trying to modify the rollover conditions of a handful of indexes in my ES cluster.
Elasticsearch version: 7.11.2
Winlogbeat version: 7.11.2
In order to do so I am using the following query:
curl -u elastic:**** -kv -X POST https://192.**.100.107:9200/myindex-*/_rollover?pretty -H 'Content-Type: application/json' -d'
{
"conditions": {
"max_age": "15d",
"max_docs": 1000,
"max_single_primary_size": "15gb"
}
}
'
It seems Elasticsearch API returns a "Bad Request" error, because it is not able to parse the param "max_single_primary_size".
The JSON response is the following:
{
"error" : {
"root_cause" : [
{
"type" : "x_content_parse_exception",
"reason" : "[6:5] [conditions] unknown field [max_single_primary_size]"
}
],
"type" : "x_content_parse_exception",
"reason" : "[6:32] [rollover] failed to parse field [conditions]",
"caused_by" : {
"type" : "x_content_parse_exception",
"reason" : "[6:5] [conditions] unknown field [max_single_primary_size]"
}
},
"status" : 400
}
I followed the following link in the docs: Rollover API | Elasticsearch Guide [7.x] | Elastic
Am I missing any specific settings?
Thanks in advance!
Kind regards,