# Reading Cluster Settings in Plugin

**URL:** <https://discuss.elastic.co/t/reading-cluster-settings-in-plugin/274920>\
**Category:** Elasticsearch\
**Created:** [June 3, 2021, 8:32pm UTC](https://discuss.elastic.co/t/reading-cluster-settings-in-plugin/274920 "2021-06-03T20:32:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jessebs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jessebs/32/89808_2.png) [@jessebs](https://discuss.elastic.co/u/jessebs)\
**Post date:** [June 3, 2021, 8:32pm UTC](https://discuss.elastic.co/t/reading-cluster-settings-in-plugin/274920/1 "2021-06-03T20:32:12Z")

</div>

I am writing a plugin and would like to configure it through the cluster settings API.

I found some examples of using a non-default plugin constructor which receives Settings, but these settings only seem to contain what's included in the elasticsearch.yml, not what was inserted via the cluster settings API.

Can anyone offer guidance on how to access those settings?

---

<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:** [July 1, 2021, 8:32pm UTC](https://discuss.elastic.co/t/reading-cluster-settings-in-plugin/274920/2 "2021-07-01T20:32:53Z")

</div>

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