# Configuring RPM based Elasticsearch - CentOS6

**URL:** <https://discuss.elastic.co/t/configuring-rpm-based-elasticsearch-centos6/100063>\
**Category:** Elasticsearch\
**Created:** [September 11, 2017, 1:23pm UTC](https://discuss.elastic.co/t/configuring-rpm-based-elasticsearch-centos6/100063 "2017-09-11T13:23:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ORich](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/orich/32/21675_2.png) [@ORich](https://discuss.elastic.co/u/ORich)\
**Post date:** [September 11, 2017, 1:23pm UTC](https://discuss.elastic.co/t/configuring-rpm-based-elasticsearch-centos6/100063/1 "2017-09-11T13:23:44Z")

</div>

Dear experts,  
as detailed in doc, Elasticsearch loads its configuration from the /etc/elasticsearch/elasticsearch.yml which includes path.data and path.logs  
On the other hand, same doc does state that the RPM also has a system configuration file (/etc/sysconfig/elasticsearch), which allows you to set LOG\_DIR and DATA\_DIR ...  
This sounds really strange to me ... why do we have 2 configuration files handling the same configuration items ?  
Thanks for your support.

---

<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:** [September 12, 2017, 8:52am UTC](https://discuss.elastic.co/t/configuring-rpm-based-elasticsearch-centos6/100063/2 "2017-09-12T08:52:29Z")

</div>

the `sysconfig` based configuration is a feature of RPM packages that many other packages do in a similar way. If you want to configure your Elasticsearch node independent from the underlying distribution I always encourage to change the YAML file directly instead of the distribution dependent configuration

---

<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:** [October 10, 2017, 8:53am UTC](https://discuss.elastic.co/t/configuring-rpm-based-elasticsearch-centos6/100063/3 "2017-10-10T08:53:02Z")

</div>

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