# Is there way to get current/default value of config parameters?

**URL:** <https://discuss.elastic.co/t/is-there-way-to-get-current-default-value-of-config-parameters/68927>\
**Category:** Elasticsearch\
**Created:** [December 13, 2016, 7:30pm UTC](https://discuss.elastic.co/t/is-there-way-to-get-current-default-value-of-config-parameters/68927 "2016-12-13T19:30:31Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![suanmeiguo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/suanmeiguo/32/11758_2.png) [@suanmeiguo](https://discuss.elastic.co/u/suanmeiguo)\
**Post date:** [December 13, 2016, 7:30pm UTC](https://discuss.elastic.co/t/is-there-way-to-get-current-default-value-of-config-parameters/68927/1 "2016-12-13T19:30:31Z")

</div>

In elasticsearch, is there a way to get the current value for all config parameters? like `show variabes` in mysql.

The issue is, when I set a variable in elasticsearch.yml file I cannot retrieve the new value through api.

For example, I can set `indices.breaker.fielddata.limit: 70%` in elasticsearch.yml file. but when I do `GET /_cluster/settings` it doesn't show up.

In general, it makes users' life easier to know what config is in effect. Usually when a parameter doesn't show up in the settings or cluster settings api, I look up the default value online. But that's not retrievable from the app.

I'm using Elasticsearch 2.4.1. Much appreciated!

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [December 13, 2016, 11:10pm UTC](https://discuss.elastic.co/t/is-there-way-to-get-current-default-value-of-config-parameters/68927/2 "2016-12-13T23:10:38Z")

</div>

Not in 2.4 there isn't, that was added to 5.0.

---

<div class="post-metadata">

**Author:** ![suanmeiguo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/suanmeiguo/32/11758_2.png) [@suanmeiguo](https://discuss.elastic.co/u/suanmeiguo)\
**Post date:** [December 14, 2016, 12:39am UTC](https://discuss.elastic.co/t/is-there-way-to-get-current-default-value-of-config-parameters/68927/3 "2016-12-14T00:39:35Z")

</div>

oh okay. that's another reason to upgrade to 5. Do you have a link to the documentation or release note on this in 5? what is the endpoint to get this?

Thank you!

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [December 14, 2016, 1:21am UTC](https://discuss.elastic.co/t/is-there-way-to-get-current-default-value-of-config-parameters/68927/4 "2016-12-14T01:21:49Z")

</div>

`_cluster/settings?include_defaults&pretty` is what you need to call.  
It's currently undocumented though, not sure why that is but I'll raise an issue to get that fixed 🙂

---

<div class="post-metadata">

**Author:** ![suanmeiguo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/suanmeiguo/32/11758_2.png) [@suanmeiguo](https://discuss.elastic.co/u/suanmeiguo)\
**Post date:** [December 14, 2016, 1:39am UTC](https://discuss.elastic.co/t/is-there-way-to-get-current-default-value-of-config-parameters/68927/5 "2016-12-14T01:39:20Z")

</div>

This is awesome. Thank you!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 11, 2017, 1:39am UTC](https://discuss.elastic.co/t/is-there-way-to-get-current-default-value-of-config-parameters/68927/6 "2017-01-11T01:39:47Z")

</div>

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