# Change Elasticsearch data store path

**URL:** <https://discuss.elastic.co/t/change-elasticsearch-data-store-path/65686>\
**Category:** Elasticsearch\
**Created:** [November 10, 2016, 3:07pm UTC](https://discuss.elastic.co/t/change-elasticsearch-data-store-path/65686 "2016-11-10T15:07:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![manojvenkat](https://avatars.discourse-cdn.com/v4/letter/m/e36b37/32.png) [@manojvenkat](https://discuss.elastic.co/u/manojvenkat)\
**Post date:** [November 10, 2016, 3:07pm UTC](https://discuss.elastic.co/t/change-elasticsearch-data-store-path/65686/1 "2016-11-10T15:07:13Z")

</div>

Hi All,

I am using Elasticsearch 2.4 and I wanted to store the elastic search index files in different location I specify.

I changed the **path.data: /apps/opt/elasticsearch** in elasticsearch.yml. But I am not seeing the elasticsearch data moving.

Please help.. Because I don't have storage space in default installation path..

---

<div class="post-metadata">

**Author:** ![manojvenkat](https://avatars.discourse-cdn.com/v4/letter/m/e36b37/32.png) [@manojvenkat](https://discuss.elastic.co/u/manojvenkat)\
**Post date:** [November 10, 2016, 3:33pm UTC](https://discuss.elastic.co/t/change-elasticsearch-data-store-path/65686/2 "2016-11-10T15:33:43Z")

</div>

I referred this link [http://stackoverflow.com/questions/30628738/how-to-change-path-for-data-storage-for-elasticsearch](http://stackoverflow.com/questions/30628738/how-to-change-path-for-data-storage-for-elasticsearch)

I changed the permission from root user to my id. But till no positive result.

---

<div class="post-metadata">

**Author:** ![manojvenkat](https://avatars.discourse-cdn.com/v4/letter/m/e36b37/32.png) [@manojvenkat](https://discuss.elastic.co/u/manojvenkat)\
**Post date:** [November 10, 2016, 3:49pm UTC](https://discuss.elastic.co/t/change-elasticsearch-data-store-path/65686/3 "2016-11-10T15:49:10Z")

</div>

Found a solution. user should be elasticsearch. on executing the **chown elasticsearch:elasticsearch folder** as root user on the directory and restarting the elasticsearch and kibana resolved the issue. Thanks.

---

<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 8, 2016, 3:49pm UTC](https://discuss.elastic.co/t/change-elasticsearch-data-store-path/65686/4 "2016-12-08T15:49:13Z")

</div>

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