# Elasticsearch import configuration files

**URL:** <https://discuss.elastic.co/t/elasticsearch-import-configuration-files/22589>\
**Category:** Elasticsearch\
**Created:** [March 9, 2015, 10:02pm UTC](https://discuss.elastic.co/t/elasticsearch-import-configuration-files/22589 "2015-03-09T22:02:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_Power](https://avatars.discourse-cdn.com/v4/letter/m/d78d45/32.png) [@Michael\_Power](https://discuss.elastic.co/u/Michael_Power)\
**Post date:** [March 9, 2015, 10:02pm UTC](https://discuss.elastic.co/t/elasticsearch-import-configuration-files/22589/1 "2015-03-09T22:02:52Z")

</div>

Hello,

Is there anyway to reconfigure elasticsearch without changing the main  
/etc/elasticsearch/elasticsearch.yml file?

We want to setup an elasticsearch.yml file that is common for all our test  
environments. Then we want an additional file that is specific to the  
environment. That environment specific file might change the cluster name,  
change the discovery mode, etc.

Is this possible with elasticsearch? Can we give it a list of locations  
where it can find the elasticsearch.yml

For example this is supported:

path.data: ["/mnt/first", "/mnt/second"]

Is this supported?  
path.conf: ["/etc/elasticsearch", "/etc/elasticsearch.d/\*"]

or this?

path.conf: ["/etc/elasticsearch", "/etc/elasticsearch-local/"]

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/9c3b279b-e4d6-4923-90a2-60fedbc5ea80%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/9c3b279b-e4d6-4923-90a2-60fedbc5ea80%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [March 9, 2015, 11:17pm UTC](https://discuss.elastic.co/t/elasticsearch-import-configuration-files/22589/2 "2015-03-09T23:17:44Z")

</div>

You cannot use an array in path.conf.

On 9 March 2015 at 15:02, Michael Power [michael.power.elotouch@gmail.com](mailto:michael.power.elotouch@gmail.com)  
wrote:

> Hello,
> 
> Is there anyway to reconfigure elasticsearch without changing the main  
> /etc/elasticsearch/elasticsearch.yml file?
> 
> We want to setup an elasticsearch.yml file that is common for all our test  
> environments. Then we want an additional file that is specific to the  
> environment. That environment specific file might change the cluster name,  
> change the discovery mode, etc.
> 
> Is this possible with elasticsearch? Can we give it a list of locations  
> where it can find the elasticsearch.yml
> 
> For example this is supported:
> 
> path.data: ["/mnt/first", "/mnt/second"]
> 
> Is this supported?  
> path.conf: ["/etc/elasticsearch", "/etc/elasticsearch.d/\*"]
> 
> or this?
> 
> path.conf: ["/etc/elasticsearch", "/etc/elasticsearch-local/"]
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/9c3b279b-e4d6-4923-90a2-60fedbc5ea80%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/9c3b279b-e4d6-4923-90a2-60fedbc5ea80%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/9c3b279b-e4d6-4923-90a2-60fedbc5ea80%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/9c3b279b-e4d6-4923-90a2-60fedbc5ea80%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAEYi1X\_q87MY%2B3xuqJxaOwxOWcUyOG9YVDJ-tggdsxom%3DxXHPw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEYi1X_q87MY%2B3xuqJxaOwxOWcUyOG9YVDJ-tggdsxom%3DxXHPw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Michael\_Power](https://avatars.discourse-cdn.com/v4/letter/m/d78d45/32.png) [@Michael\_Power](https://discuss.elastic.co/u/Michael_Power)\
**Post date:** [March 10, 2015, 10:46pm UTC](https://discuss.elastic.co/t/elasticsearch-import-configuration-files/22589/3 "2015-03-10T22:46:15Z")

</div>

Is there any other way of modifying the elasticsearch configuration without  
modifying the package manager installed elasticsearch.yml file?

On Monday, March 9, 2015 at 4:18:19 PM UTC-7, Mark Walkom wrote:

> You cannot use an array in path.conf.
> 
> On 9 March 2015 at 15:02, Michael Power \<[michael.pow...@gmail.com](mailto:michael.pow...@gmail.com)  
> \<javascript:\>\> wrote:
> 
> > Hello,
> > 
> > Is there anyway to reconfigure elasticsearch without changing the main  
> > /etc/elasticsearch/elasticsearch.yml file?
> > 
> > We want to setup an elasticsearch.yml file that is common for all our  
> > test environments. Then we want an additional file that is specific to the  
> > environment. That environment specific file might change the cluster name,  
> > change the discovery mode, etc.
> > 
> > Is this possible with elasticsearch? Can we give it a list of locations  
> > where it can find the elasticsearch.yml
> > 
> > For example this is supported:
> > 
> > path.data: ["/mnt/first", "/mnt/second"]
> > 
> > Is this supported?  
> > path.conf: ["/etc/elasticsearch", "/etc/elasticsearch.d/\*"]
> > 
> > or this?
> > 
> > path.conf: ["/etc/elasticsearch", "/etc/elasticsearch-local/"]
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/9c3b279b-e4d6-4923-90a2-60fedbc5ea80%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/9c3b279b-e4d6-4923-90a2-60fedbc5ea80%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/9c3b279b-e4d6-4923-90a2-60fedbc5ea80%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/9c3b279b-e4d6-4923-90a2-60fedbc5ea80%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/2f216a7f-9c3d-42d5-b376-75cdc05d2348%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/2f216a7f-9c3d-42d5-b376-75cdc05d2348%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [March 10, 2015, 11:58pm UTC](https://discuss.elastic.co/t/elasticsearch-import-configuration-files/22589/4 "2015-03-10T23:58:52Z")

</div>

You can define your own path by calling the ES binary with  
-Des.path.config=/path  
On 10/03/2015 3:46 pm, "Michael Power" [michael.power.elotouch@gmail.com](mailto:michael.power.elotouch@gmail.com)  
wrote:

> Is there any other way of modifying the elasticsearch configuration  
> without modifying the package manager installed elasticsearch.yml file?
> 
> On Monday, March 9, 2015 at 4:18:19 PM UTC-7, Mark Walkom wrote:
> 
> > You cannot use an array in path.conf.
> > 
> > On 9 March 2015 at 15:02, Michael Power [michael.pow...@gmail.com](mailto:michael.pow...@gmail.com) wrote:
> > 
> > > Hello,
> > > 
> > > Is there anyway to reconfigure elasticsearch without changing the main  
> > > /etc/elasticsearch/elasticsearch.yml file?
> > > 
> > > We want to setup an elasticsearch.yml file that is common for all our  
> > > test environments. Then we want an additional file that is specific to the  
> > > environment. That environment specific file might change the cluster name,  
> > > change the discovery mode, etc.
> > > 
> > > Is this possible with elasticsearch? Can we give it a list of locations  
> > > where it can find the elasticsearch.yml
> > > 
> > > For example this is supported:
> > > 
> > > path.data: ["/mnt/first", "/mnt/second"]
> > > 
> > > Is this supported?  
> > > path.conf: ["/etc/elasticsearch", "/etc/elasticsearch.d/\*"]
> > > 
> > > or this?
> > > 
> > > path.conf: ["/etc/elasticsearch", "/etc/elasticsearch-local/"]
> > > 
> > > --  
> > > You received this message because you are subscribed to the Google  
> > > Groups "elasticsearch" group.  
> > > To unsubscribe from this group and stop receiving emails from it, send  
> > > an email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > To view this discussion on the web visit [https://groups.google.com/d/](https://groups.google.com/d/)  
> > > msgid/elasticsearch/9c3b279b-e4d6-4923-90a2-60fedbc5ea80%  
> > > [40googlegroups.com](http://40googlegroups.com)  
> > > [https://groups.google.com/d/msgid/elasticsearch/9c3b279b-e4d6-4923-90a2-60fedbc5ea80%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/9c3b279b-e4d6-4923-90a2-60fedbc5ea80%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > .  
> > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/2f216a7f-9c3d-42d5-b376-75cdc05d2348%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/2f216a7f-9c3d-42d5-b376-75cdc05d2348%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/2f216a7f-9c3d-42d5-b376-75cdc05d2348%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/2f216a7f-9c3d-42d5-b376-75cdc05d2348%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAEYi1X8xVZdGaF6W\_LP62cnh5-U%3Dd0nfBy64XCQn%3Dp844xAh-w%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEYi1X8xVZdGaF6W_LP62cnh5-U%3Dd0nfBy64XCQn%3Dp844xAh-w%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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 6, 2017, 12:27am UTC](https://discuss.elastic.co/t/elasticsearch-import-configuration-files/22589/5 "2017-07-06T00:27:31Z")

</div>


