Hi everyone,
We would like to extend the number of dimension_fields of our TSDS by
POST _index_template/ds-micrometer-metrics-prod
{
"index_patterns": [
"micrometer"
],
"data_stream": {},
"template": {
"settings": {
"index.mode": "time_series",
"index.mapping.dimension_fields.limit": 25,
"index.routing_path": [
"identifier"
]
}
},
"composed_of": [
"metrics-timeseries-datastream-mappings",
"metrics-timeseries-datastream-prod-settings"
],
"priority": 500
}
And we can get the template by
GET _index_template/ds-micrometer-metrics-prod
And result
{
"index_templates": [
{
"name": "ds-micrometer-metrics-prod",
...
"template": {
"settings": {
"index": {
....
"mapping": {
"dimension_fields": {
"limit": "25"
}
}
}
}
},
...
However, when we tried to apply new mappings which has 23 dimension fields, we got error:
{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "Limit of total dimension fields [21] has been exceeded"
}
],
"type": "illegal_argument_exception",
"reason": "Limit of total dimension fields [21] has been exceeded"
},
"status": 400
}
Do you know why and how to fix this issue?
Elasticsearch: 8.8.1
Best regards,