# Where does Elastic search stores the data in windows machine

**URL:** <https://discuss.elastic.co/t/where-does-elastic-search-stores-the-data-in-windows-machine/102064>\
**Category:** Elasticsearch\
**Created:** [September 28, 2017, 5:53am UTC](https://discuss.elastic.co/t/where-does-elastic-search-stores-the-data-in-windows-machine/102064 "2017-09-28T05:53:01Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thiyagarajan](https://avatars.discourse-cdn.com/v4/letter/t/ba8739/32.png) [@Thiyagarajan](https://discuss.elastic.co/u/Thiyagarajan)\
**Post date:** [September 28, 2017, 5:53am UTC](https://discuss.elastic.co/t/where-does-elastic-search-stores-the-data-in-windows-machine/102064/1 "2017-09-28T05:53:01Z")

</div>

Hi,

We have downloaded ELK and unzipped them under c:\Softwares in windows machine. We have started the Elasticsearch, Kibana and Logstash with respective .bat files in bin directory.

Filebeat is installed in our SIT server and it is posting the logs to logstash as expected. Last week our dev machine harddisk became full (This is where we have installed ELK). We got this issue after 3 weeks from when we installed ELK on this machine.

So I was trying to clear the logs of Elasticsearch so that we can free up some space. But I could not find any specific storage location of Elasticsearch.

After searching the installed folders I have noticed c:\Softwares\elasticsearch-5.5.0\data folder. But I am not sure if this is where ELK stores the data. I have been reading other posted queries in this site but could not find the answer.

Our queries are,

1. Where is Elasticsearch data stored in windows machine for our case
2. How to delete the data after certain days. We would like to retain only two weeks data during SIT phase. Once we move on to production, we may retain 2 months logs.

Any help would appreciated.

---

<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:** [September 28, 2017, 5:55am UTC](https://discuss.elastic.co/t/where-does-elastic-search-stores-the-data-in-windows-machine/102064/2 "2017-09-28T05:55:44Z")

</div>

FYI we’ve renamed ELK to the Elastic Stack, otherwise Beats feels left out 😉

[https://www.elastic.co/guide/en/elasticsearch/reference/current/zip-windows.html#windows-layout](https://www.elastic.co/guide/en/elasticsearch/reference/current/zip-windows.html#windows-layout) should answer your first question.  
[Elasticsearch Curator](https://www.elastic.co/guide/en/elasticsearch/client/curator/current/index.html) will answer your second one 🙂

---

<div class="post-metadata">

**Author:** ![Thiyagarajan](https://avatars.discourse-cdn.com/v4/letter/t/ba8739/32.png) [@Thiyagarajan](https://discuss.elastic.co/u/Thiyagarajan)\
**Post date:** [September 28, 2017, 6:33am UTC](https://discuss.elastic.co/t/where-does-elastic-search-stores-the-data-in-windows-machine/102064/3 "2017-09-28T06:33:52Z")

</div>

Hi Mark,

Thanks a lot for your quick reply. Will use the name Elastic Stack here on.

So our storage location must be c:\Softwares\elasticsearch-5.5.0\data? Please correct me if I am wrong.

I am very new to Elastic Stack. So I will spend some time on Curator for data management and come back if I have any queries.

---

<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:** [September 28, 2017, 6:42am UTC](https://discuss.elastic.co/t/where-does-elastic-search-stores-the-data-in-windows-machine/102064/4 "2017-09-28T06:42:21Z")

</div>

It will be that path because that is the default, yes.  
You can change it though, that page explains how a little higher up.

---

<div class="post-metadata">

**Author:** ![Thiyagarajan](https://avatars.discourse-cdn.com/v4/letter/t/ba8739/32.png) [@Thiyagarajan](https://discuss.elastic.co/u/Thiyagarajan)\
**Post date:** [September 28, 2017, 11:41am UTC](https://discuss.elastic.co/t/where-does-elastic-search-stores-the-data-in-windows-machine/102064/5 "2017-09-28T11:41:16Z")

</div>

Hi Mark,

Now I have downloaded curator and unzipped.

c:\Softwares\elasticsearch-curator-5.2.0-amd64\curator-5.2.0-amd64\>curator.exe

When I try to start the curator with above command to verify the installation I am getting below error

The program can't start because VCRUNTIME140.dll is missing from your computer.

I am from Java background. So I do not have knowledge on Python. Please let me know If I am missing something here.

Thanks in advance

---

<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:** [September 28, 2017, 9:00pm UTC](https://discuss.elastic.co/t/where-does-elastic-search-stores-the-data-in-windows-machine/102064/6 "2017-09-28T21:00:37Z")

</div>

Let me cc @theuntergeek here as this is outside my experience with Curator 🙂

---

<div class="post-metadata">

**Author:** ![Thiyagarajan](https://avatars.discourse-cdn.com/v4/letter/t/ba8739/32.png) [@Thiyagarajan](https://discuss.elastic.co/u/Thiyagarajan)\
**Post date:** [October 3, 2017, 12:49pm UTC](https://discuss.elastic.co/t/where-does-elastic-search-stores-the-data-in-windows-machine/102064/7 "2017-10-03T12:49:02Z")

</div>

Hi Aaron,

Have you got a chance to look into this issue?

---

<div class="post-metadata">

**Author:** ![theuntergeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theuntergeek/32/44961_2.png) [@theuntergeek](https://discuss.elastic.co/u/theuntergeek)\
**Post date:** [October 3, 2017, 1:44pm UTC](https://discuss.elastic.co/t/where-does-elastic-search-stores-the-data-in-windows-machine/102064/8 "2017-10-03T13:44:37Z")

</div>

`VCRUNTIME140.dll` is not something that ships with Curator, even for Windows. I have never heard of its absence before. What version of Windows are you running on?

I found [this article](https://ugetfix.com/ask/how-to-fix-vcruntime140-dll-is-missing-error-on-windows/) that describes some of the conditions where this can occur, and how to fix it.

---

<div class="post-metadata">

**Author:** ![Thiyagarajan](https://avatars.discourse-cdn.com/v4/letter/t/ba8739/32.png) [@Thiyagarajan](https://discuss.elastic.co/u/Thiyagarajan)\
**Post date:** [October 5, 2017, 5:37am UTC](https://discuss.elastic.co/t/where-does-elastic-search-stores-the-data-in-windows-machine/102064/9 "2017-10-05T05:37:39Z")

</div>

Hi Aaron,

We are using Windows 7 Professional 64bit OS.

We are going to do Elastic Stack setup in another machine along with curator to check if there is any machine specific issues.

We will update you after doing the setup.

Thanks for spending your valuable time to share us the article.

---

<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:** [November 2, 2017, 5:38am UTC](https://discuss.elastic.co/t/where-does-elastic-search-stores-the-data-in-windows-machine/102064/10 "2017-11-02T05:38:10Z")

</div>

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