# Custom path for elasticsearch.yml, kibana.yml and logstash.yml

**URL:** <https://discuss.elastic.co/t/custom-path-for-elasticsearch-yml-kibana-yml-and-logstash-yml/302895>\
**Category:** Elasticsearch\
**Created:** [April 21, 2022, 10:25am UTC](https://discuss.elastic.co/t/custom-path-for-elasticsearch-yml-kibana-yml-and-logstash-yml/302895 "2022-04-21T10:25:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ashiqab](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ashiqab/32/103144_2.png) [@ashiqab](https://discuss.elastic.co/u/ashiqab)\
**Post date:** [April 21, 2022, 10:25am UTC](https://discuss.elastic.co/t/custom-path-for-elasticsearch-yml-kibana-yml-and-logstash-yml/302895/1 "2022-04-21T10:25:28Z")

</div>

Hello,

I have installed ELK stack on my test server using the default installation options and have been able to set up an end to end test system working.

However now, I have a new requirement to change the default installation path and all relevant ELK paths from /var, /etc etc. to custom data file systems as the / file system gets exchanged during OS upgrade and relevant files and directories will be erased.

Is there any options in order to change the yml files location from /etc/Elasticsearch/Elasticsearch.yml (/etc/logstash/logstash.yml or /etc/kibana/kibana.yml) to a custom directory say /elk/etc/Elasticsearch/Elasticsearch.yml ?

Thanks and regards,  
Ashiq Aboo Backer

---

<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:** [April 26, 2022, 1:24am UTC](https://discuss.elastic.co/t/custom-path-for-elasticsearch-yml-kibana-yml-and-logstash-yml/302895/2 "2022-04-26T01:24:53Z")

</div>

Each of these has the ability to use custom directories, yes.

- Elasticsearch - [Configuring Elasticsearch | Elasticsearch Guide [8.1] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/settings.html#config-files-location)
- Kibana - [Configure Kibana | Kibana Guide [8.1] | Elastic](https://www.elastic.co/guide/en/kibana/current/settings.html#settings)
- Logstash - [Running Logstash from the Command Line | Logstash Reference [8.1] | Elastic](https://www.elastic.co/guide/en/logstash/current/running-logstash-command-line.html#command-line-flags)

---

<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:** [May 24, 2022, 1:25am UTC](https://discuss.elastic.co/t/custom-path-for-elasticsearch-yml-kibana-yml-and-logstash-yml/302895/3 "2022-05-24T01:25:54Z")

</div>

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