# Elasticsearch configuration on the fly

**URL:** <https://discuss.elastic.co/t/elasticsearch-configuration-on-the-fly/72709>\
**Category:** Elasticsearch\
**Created:** [January 24, 2017, 11:10pm UTC](https://discuss.elastic.co/t/elasticsearch-configuration-on-the-fly/72709 "2017-01-24T23:10:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![santsaha](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/santsaha/32/6010_2.png) [@santsaha](https://discuss.elastic.co/u/santsaha)\
**Post date:** [January 24, 2017, 11:10pm UTC](https://discuss.elastic.co/t/elasticsearch-configuration-on-the-fly/72709/1 "2017-01-24T23:10:39Z")

</div>

This is a general configuration question.

I have a production cluster of 3 master and 3 data node. I want to enable dynamic scripting [off by default].

Do i have to individually change the 6 configuration files on the 6 nodes and do a rolling restart ? Or is there any other way to achieve this.

---

<div class="post-metadata">

**Author:** ![dakrone](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dakrone/32/23351_2.png) [@dakrone](https://discuss.elastic.co/u/dakrone)\
**Post date:** [January 24, 2017, 11:30pm UTC](https://discuss.elastic.co/t/elasticsearch-configuration-on-the-fly/72709/2 "2017-01-24T23:30:58Z")

</div>

Yes, for non-dynamic settings you will need to make the change to elasticsearch.yml and then perform a rolling restart.

This is a requirement in particular for this security-sensitive setting so that any potential attacker cannot just turn scripts on and then try to exploit Elasticsearch with scripting.

---

<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 21, 2017, 11:31pm UTC](https://discuss.elastic.co/t/elasticsearch-configuration-on-the-fly/72709/3 "2017-02-21T23:31:03Z")

</div>

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