Configuring RPM based Elasticsearch - CentOS6

Dear experts,
as detailed in doc, Elasticsearch loads its configuration from the /etc/elasticsearch/elasticsearch.yml which includes 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.

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

1 Like

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