# Configuring YML files Location

**URL:** <https://discuss.elastic.co/t/configuring-yml-files-location/18096>\
**Category:** Elasticsearch\
**Created:** [June 13, 2014, 12:25pm UTC](https://discuss.elastic.co/t/configuring-yml-files-location/18096 "2014-06-13T12:25:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![karthik426](https://avatars.discourse-cdn.com/v4/letter/k/edb3f5/32.png) [@karthik426](https://discuss.elastic.co/u/karthik426)\
**Post date:** [June 13, 2014, 12:25pm UTC](https://discuss.elastic.co/t/configuring-yml-files-location/18096/1 "2014-06-13T12:25:05Z")

</div>

Hi,

I am trying to setup the configuration of ES (elasticsearch.yml and  
logging.yml) outside of the elasticsearch package. I have put the two files  
in a separate location and pointed the CONF\_DIR to that location. I launch  
the ES server by specifying the cluster name and node name.

The problem I am seeing is that this configuration is not getting  
picked-up. I verified this by checking the logs files. The log files get  
updated when I have the yml config files in the ES directory. But when I  
move them out, the logs don't get updated.

Any pointers on how to get configure the yml files location outside of the  
ES package ?

Thanks,  
Karthik Jayanthi

--  
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/CAD7PaHz1PD26CMf1sN2AsudPoVDjNBTzbU7HwmtvJ39FuTWjdA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAD7PaHz1PD26CMf1sN2AsudPoVDjNBTzbU7HwmtvJ39FuTWjdA%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![brian\_yoder](https://avatars.discourse-cdn.com/v4/letter/b/f1d935/32.png) [@brian\_yoder](https://discuss.elastic.co/u/brian_yoder)\
**Post date:** [June 13, 2014, 5:28pm UTC](https://discuss.elastic.co/t/configuring-yml-files-location/18096/2 "2014-06-13T17:28:50Z")

</div>

For example, I keep my Elasticsearch configurations for use with the ELK  
stack within this directory:

_/opt/config/elk/current_

So my start-up script calls the elasticsearch command as follows:

$ES\_HOME/elasticsearch -d ... -Des.path.conf=_/opt/config/elk/current_ ...

Hope this helps!

Brian

--  
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/bc66b0cc-7505-4d43-87c8-d6ce1d87851b%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/bc66b0cc-7505-4d43-87c8-d6ce1d87851b%40googlegroups.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, 1:22am UTC](https://discuss.elastic.co/t/configuring-yml-files-location/18096/3 "2017-07-06T01:22:40Z")

</div>


