How can I generate a full Elasticsearch configuration?

I have only basic settings in the elasticsearch.yml file. I configured the rest of the elasticsearch settings using the REST API. I wonder whether it is possible to generate a full configuration containing the settings set in the file elasticsearch.yml, REST API etc.?

Hi John,

There isn't a way to generate an elasticsearch.yml with all these settings, but you can retrieve every setting that ES supports with:

GET /_cluster/settings?include_defaults=true

Which will return all the settings and their default values from the REST API

Hi Lee,

Thank you for your answer. It seems to be working properly but why there are no such fields for instance like number_of_replicas or max_thread_count?

Some of these settings are a little special, but I agree that they should be included in the output, if you are not seeing them can you open an issue at Issues · elastic/elasticsearch · GitHub so they can be added?

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