How to set total limit field to be other than 1000 by default

Hi,

I would like to increase the limit of total fields for my indices.
I know that we can change it in Kibana by sending an API call as such:

PUT logstash-*/_settings
{
  "index.mapping.total_fields.limit": 5000
}

But this can be done only for the indices that are already created.
How do I set the default value of total field limit before the index is created?

Thanks and Regards
Hameed

That can be done in an index template.

Sorry, I am new to this.
Can you tell me how?

Example here: https://stackoverflow.com/questions/52653056/elasticsearch-field-limit-more-than-1000 (in the first answer)

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