Change default [max_docvalue_fields_search] value

I'm using kibana and was encountering an issue that was solved by setting the [max_docvalue_fields_search] setting to a greater value like this:

PUT /index_name_log-*/_settings
	"index.max_docvalue_fields_search" : "10000000"

The problem is this works only for previously created indexes and since I'm creating index for each day I have to change this each day, is there a way to change the default max_docvalue_fields_search for newly created indexes? I don't think it would be a good idea to do this each time even if it is automated.

I found the solution, for anyone still suffering from this you can use 'index templates'
check this link:

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