# Setting custom path for elasticsearch.yml

**URL:** https://discuss.elastic.co/t/setting-custom-path-for-elasticsearch-yml/156848
**Category:** Elasticsearch
**Created:** [November 15, 2018, 12:01pm UTC](https://discuss.elastic.co/t/setting-custom-path-for-elasticsearch-yml/156848 "2018-11-15T12:01:48Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![jmukhtar](https://avatars.discourse-cdn.com/v4/letter/j/a9a28c/32.png) [@jmukhtar](https://discuss.elastic.co/u/jmukhtar)
#### Post date: [November 15, 2018, 12:01pm UTC](https://discuss.elastic.co/t/setting-custom-path-for-elasticsearch-yml/156848/1 "2018-11-15T12:01:49Z")

</div>

hi

I am trying to upgrade our elastic stack to 6.4.3 version; for some historic reason we use custom path for elasticsearch.yml file. Till 5.6 version we were able to use -Edefault.path.conf=/path/to/conf/file in the start-up script to point elastic to the custom file.

But as of 6.4.3 i can't use this as i get "java.lang.IllegalArgumentException: unknown setting [default.path.conf] please check that any required plugins are installed, or check the breaking changes documentation for removed settings"

i have tried various combinations but till no avail.

Can anyone suggest how to do that?

---

<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: [December 13, 2018, 12:01pm UTC](https://discuss.elastic.co/t/setting-custom-path-for-elasticsearch-yml/156848/2 "2018-12-13T12:01:59Z")

</div>

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