# Script.painless.regex.enabled: true

**URL:** <https://discuss.elastic.co/t/script-painless-regex-enabled-true/188440>\
**Category:** Elasticsearch\
**Created:** [July 2, 2019, 6:36am UTC](https://discuss.elastic.co/t/script-painless-regex-enabled-true/188440 "2019-07-02T06:36:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Champ](https://avatars.discourse-cdn.com/v4/letter/c/c6cbf5/32.png) [@Champ](https://discuss.elastic.co/u/Champ)\
**Post date:** [July 2, 2019, 6:36am UTC](https://discuss.elastic.co/t/script-painless-regex-enabled-true/188440/1 "2019-07-02T06:36:38Z")

</div>

I am running Elasticsearch in docker and I can't figure out where to configure the  
"script.painless.regex.enabled: true" in the elasticsearch.yml file.  
The following is my elasticsearch.yml file

# Module: elasticsearch

# Docs: [https://www.elastic.co/guide/en/beats/filebeat/7.1/filebeat-module-elasticsearch.html](https://www.elastic.co/guide/en/beats/filebeat/7.1/filebeat-module-elasticsearch.html)

- module: elasticsearch

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [July 2, 2019, 11:18am UTC](https://discuss.elastic.co/t/script-painless-regex-enabled-true/188440/2 "2019-07-02T11:18:47Z")

</div>

See the [Install Elasticsearch with Docker](https://www.elastic.co/guide/en/elasticsearch/reference/7.2/docker.html) that shows how to add parameters on the command line on startup or directly in the docker file via the environment.

--Alex

---

<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 30, 2019, 11:18am UTC](https://discuss.elastic.co/t/script-painless-regex-enabled-true/188440/3 "2019-07-30T11:18:53Z")

</div>

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