# Plugin configuration

**URL:** <https://discuss.elastic.co/t/plugin-configuration/264079>\
**Category:** Elasticsearch\
**Created:** [February 12, 2021, 4:03am UTC](https://discuss.elastic.co/t/plugin-configuration/264079 "2021-02-12T04:03:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rwxr\_xr\_x](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rwxr_xr_x/32/45812_2.png) [@rwxr\_xr\_x](https://discuss.elastic.co/u/rwxr_xr_x)\
**Post date:** [February 12, 2021, 4:03am UTC](https://discuss.elastic.co/t/plugin-configuration/264079/1 "2021-02-12T04:03:26Z")

</div>

Hello,

I'm converting a plugin built for ES 2.1.1 to ES 7.10.

I'm running into a strange issue. I need to pass:

`plugin-name.enable: true`

If I add it to `elasticsearch.yml` file, the configuration is available in my plugin but I get:

`java.lang.IllegalArgumentException: unknown setting [plugin-name.enable] please check that any required plugins are installed, or check the breaking changes documentation for removed settings`

I tried to find more information about how to tell ES that these settings are for my plugin, but I can't find anything. I did confirm in `plugin-descriptor.properties` that `name=plugin-name`.

Does anybody have any recommendations on how to do this?

Thank you.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [February 12, 2021, 6:52am UTC](https://discuss.elastic.co/t/plugin-configuration/264079/2 "2021-02-12T06:52:55Z")

</div>

Your plugin needs to declare the expected settings.

See for example

> <https://github.com/elastic/elasticsearch/blob/4d9ebcaabcf74c14bf71dd20d26de5eb937f9425/plugins/discovery-gce/src/main/java/org/elasticsearch/plugin/discovery/gce/GceDiscoveryPlugin.java#L90>

---

<div class="post-metadata">

**Author:** ![rwxr\_xr\_x](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rwxr_xr_x/32/45812_2.png) [@rwxr\_xr\_x](https://discuss.elastic.co/u/rwxr_xr_x)\
**Post date:** [February 12, 2021, 3:14pm UTC](https://discuss.elastic.co/t/plugin-configuration/264079/3 "2021-02-12T15:14:05Z")

</div>

Thank you. This is exactly what I was looking for. I confirmed that it resolves the issue.

---

<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:** [March 12, 2021, 3:14pm UTC](https://discuss.elastic.co/t/plugin-configuration/264079/4 "2021-03-12T15:14:32Z")

</div>

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