# Move Elastic Search from C: to D:

**URL:** <https://discuss.elastic.co/t/move-elastic-search-from-c-to-d/317051>\
**Category:** Elasticsearch\
**Created:** [October 19, 2022, 8:58pm UTC](https://discuss.elastic.co/t/move-elastic-search-from-c-to-d/317051 "2022-10-19T20:58:59Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![inemer](https://avatars.discourse-cdn.com/v4/letter/i/ed8c4c/32.png) [@inemer](https://discuss.elastic.co/u/inemer)\
**Post date:** [October 19, 2022, 8:58pm UTC](https://discuss.elastic.co/t/move-elastic-search-from-c-to-d/317051/1 "2022-10-19T20:58:59Z")

</div>

I was asking to research if it possible moving current installation of Kibana from C: drive to D: drive on our server. And if this possible is there Standard Operation Procedure (SOP) with description what step need to be done to prepare to this move, move and after move.  
Thank you.

---

<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:** [October 19, 2022, 9:38pm UTC](https://discuss.elastic.co/t/move-elastic-search-from-c-to-d/317051/2 "2022-10-19T21:38:54Z")

</div>

Welcome to our community! 😃

We don't provide SOPs for that sort of this, but it should be fine. I would copy the existing Kibana directory over to the new location, start it up and make sure everything is ok and then delete the old one.

---

<div class="post-metadata">

**Author:** ![inemer](https://avatars.discourse-cdn.com/v4/letter/i/ed8c4c/32.png) [@inemer](https://discuss.elastic.co/u/inemer)\
**Post date:** [October 20, 2022, 3:27am UTC](https://discuss.elastic.co/t/move-elastic-search-from-c-to-d/317051/3 "2022-10-20T03:27:27Z")

</div>

Thank you, @warkolm!

---

<div class="post-metadata">

**Author:** ![Rios](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rios/32/95745_2.png) [@Rios](https://discuss.elastic.co/u/Rios)\
**Post date:** [October 20, 2022, 5:01am UTC](https://discuss.elastic.co/t/move-elastic-search-from-c-to-d/317051/4 "2022-10-20T05:01:31Z")

</div>

I haven't found any anomalies by changing ELK directories. You can have only issue if you use env. varibles, conf part for Logstash, log path hardcoded, etc.  
Don't split directories inside a single product (bin, conf, lib,...) except those are created after run like logs, data, temp file registry base etc. All these custom locations are in kibana.yml

---

<div class="post-metadata">

**Author:** ![inemer](https://avatars.discourse-cdn.com/v4/letter/i/ed8c4c/32.png) [@inemer](https://discuss.elastic.co/u/inemer)\
**Post date:** [October 20, 2022, 5:16am UTC](https://discuss.elastic.co/t/move-elastic-search-from-c-to-d/317051/5 "2022-10-20T05:16:55Z")

</div>

Thank You!

---

<div class="post-metadata">

**Author:** ![inemer](https://avatars.discourse-cdn.com/v4/letter/i/ed8c4c/32.png) [@inemer](https://discuss.elastic.co/u/inemer)\
**Post date:** [October 20, 2022, 4:52pm UTC](https://discuss.elastic.co/t/move-elastic-search-from-c-to-d/317051/6 "2022-10-20T16:52:22Z")

</div>

Sorry for confusions - I just get back to my manager with all of your replays and original question get changed: _we're not moving Kibana actually, but Elasticsearch_  
Not sure if my original question should be stay now under Kibana thread.  
New question:  
**Is it possible to move installation of Elasticsearch from C: drive to D: drive on the same server?**

---

<div class="post-metadata">

**Author:** ![Rios](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rios/32/95745_2.png) [@Rios](https://discuss.elastic.co/u/Rios)\
**Post date:** [October 20, 2022, 7:07pm UTC](https://discuss.elastic.co/t/move-elastic-search-from-c-to-d/317051/7 "2022-10-20T19:07:17Z")

</div>

Should work, just change `path.data: C:/path/Data` in elasticsearch.yml, and `path.logs` if is customized. The path.data params contains where are indices.  
You can test by copying everything on D, and start as batch not as service. Leave ES on C drive just rename to C:\elk\_old.

---

<div class="post-metadata">

**Author:** ![inemer](https://avatars.discourse-cdn.com/v4/letter/i/ed8c4c/32.png) [@inemer](https://discuss.elastic.co/u/inemer)\
**Post date:** [October 20, 2022, 7:35pm UTC](https://discuss.elastic.co/t/move-elastic-search-from-c-to-d/317051/8 "2022-10-20T19:35:47Z")

</div>

Thank you for your help.

---

<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:** [October 20, 2022, 9:37pm UTC](https://discuss.elastic.co/t/move-elastic-search-from-c-to-d/317051/9 "2022-10-20T21:37:09Z")

</div>

Make sure you let them know it's Elasticsearch, not Elastic Search 😉

---

<div class="post-metadata">

**Author:** ![inemer](https://avatars.discourse-cdn.com/v4/letter/i/ed8c4c/32.png) [@inemer](https://discuss.elastic.co/u/inemer)\
**Post date:** [October 20, 2022, 9:49pm UTC](https://discuss.elastic.co/t/move-elastic-search-from-c-to-d/317051/10 "2022-10-20T21:49:45Z")

</div>

I am noob

---

<div class="post-metadata">

**Author:** ![inemer](https://avatars.discourse-cdn.com/v4/letter/i/ed8c4c/32.png) [@inemer](https://discuss.elastic.co/u/inemer)\
**Post date:** [October 25, 2022, 9:41pm UTC](https://discuss.elastic.co/t/move-elastic-search-from-c-to-d/317051/11 "2022-10-25T21:41:58Z")

</div>

Rios,  
Our ES ES was set up though NSSM. You mention start as batch, not as service. Do you happen to know batch command to start ES?  
Something like this?  
nssm start 'servicename'  
nssm stop 'servicename'

Thank you

---

<div class="post-metadata">

**Author:** ![inemer](https://avatars.discourse-cdn.com/v4/letter/i/ed8c4c/32.png) [@inemer](https://discuss.elastic.co/u/inemer)\
**Post date:** [November 3, 2022, 9:29pm UTC](https://discuss.elastic.co/t/move-elastic-search-from-c-to-d/317051/12 "2022-11-03T21:29:00Z")

</div>

Circle back and would like to say THANK YOU all of you for your help. We just move Elasticsearch services from C: drive to D: drive in BETA and schedule move in Production environment for next week.

---

<div class="post-metadata">

**Author:** ![Rios](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rios/32/95745_2.png) [@Rios](https://discuss.elastic.co/u/Rios)\
**Post date:** [November 4, 2022, 9:24am UTC](https://discuss.elastic.co/t/move-elastic-search-from-c-to-d/317051/13 "2022-11-04T09:24:31Z")

</div>

Sorry I have missed your replay.

ES doesn't need NSSM, only LS and KI.  
For ES use [elasticsearch-service.bat](https://www.elastic.co/guide/en/elasticsearch/reference/current/zip-windows.html#windows-service-manage)

---

<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 2, 2022, 9:25am UTC](https://discuss.elastic.co/t/move-elastic-search-from-c-to-d/317051/14 "2022-12-02T09:25:30Z")

</div>

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