# How to show the settings of discovery?

**URL:** <https://discuss.elastic.co/t/how-to-show-the-settings-of-discovery/163039>\
**Category:** Elasticsearch\
**Created:** [January 5, 2019, 9:00am UTC](https://discuss.elastic.co/t/how-to-show-the-settings-of-discovery/163039 "2019-01-05T09:00:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![li\_jessen2016](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/li_jessen2016/32/38817_2.png) [@li\_jessen2016](https://discuss.elastic.co/u/li_jessen2016)\
**Post date:** [January 5, 2019, 9:00am UTC](https://discuss.elastic.co/t/how-to-show-the-settings-of-discovery/163039/1 "2019-01-05T09:00:13Z")

</div>

As we know, we can use **curl host IP:9200/_nodes/transport?pretty_** to get the settings about the transport. But how to show the settings of discovery? Such as discovery.type?

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [January 7, 2019, 9:41am UTC](https://discuss.elastic.co/t/how-to-show-the-settings-of-discovery/163039/2 "2019-01-07T09:41:58Z")

</div>

The `discovery.type` setting will be available in 7.0 in the cluster stats thanks to [#36442](https://github.com/elastic/elasticsearch/pull/36442).

However, discovery settings are generally only important while a node is joining the cluster, so are set in the `elasticsearch.yml` file. Moreover, many of them are not dynamic and cannot be set via the API. Can you explain why you want to retrieve this information via the API?

---

<div class="post-metadata">

**Author:** ![li\_jessen2016](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/li_jessen2016/32/38817_2.png) [@li\_jessen2016](https://discuss.elastic.co/u/li_jessen2016)\
**Post date:** [January 7, 2019, 10:11am UTC](https://discuss.elastic.co/t/how-to-show-the-settings-of-discovery/163039/3 "2019-01-07T10:11:05Z")

</div>

Just want to show a parameter.

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [January 7, 2019, 10:39am UTC](https://discuss.elastic.co/t/how-to-show-the-settings-of-discovery/163039/4 "2019-01-07T10:39:57Z")

</div>

I understand that this is what you want to do, but I do not understand why.

---

<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:** [February 4, 2019, 10:39am UTC](https://discuss.elastic.co/t/how-to-show-the-settings-of-discovery/163039/5 "2019-02-04T10:39:59Z")

</div>

Closed on February 4, 2019, 10:39am UTC

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