sliders_alpha
sliders_alpha

Reputation: 2454

Where does Elasticsearch store its data?

So I have this Elasticsearch installation, in insert data with logstash, visualize them with kibana.

Everything in the conf file is commented, so it's using the default folders which are relative to the elastic search folder.

1/ I store data with logstash
2/ I look at them with kibana
3/ I close the instance of elastic seach, kibana and logstash
4/ I DELETE their folders
5/ I re-extract everything and reconfigure them
6/ I go into kibana and the data are still there

How is this possible?

This command will however delete the data : curl -XDELETE 'http://127.0.0.1:9200/_all'

Thanks.

ps : forgot to say that I'm on windows

Upvotes: 45

Views: 99918

Answers (7)

C-Jay
C-Jay

Reputation: 681

Have a look into the Nodes Stats and try

http://127.0.0.1:9200/_nodes/stats/fs?pretty

On Windows 10 with ElasticSearch 7 it shows:

"path" : "C:\\ProgramData\\Elastic\\Elasticsearch\\data\\nodes\\0"

Upvotes: 21

sandy.narwal
sandy.narwal

Reputation: 13

It should be in your extracted elasticsearch. Something like es/data

Upvotes: -1

Andrew Nguyen
Andrew Nguyen

Reputation: 29

On centos:

/var/lib/elasticsearch

Upvotes: 1

Jamsheer
Jamsheer

Reputation: 3753

Elastic search is storing data under the folder 'Data' as mentioned above answers. Is there any other elastic search instance available on your local network? If yes, please check the cluster name. If you use same cluster name in the same network it will share data.

Refer this link for more info.

Upvotes: 3

Noah Heldman
Noah Heldman

Reputation: 6874

If you run the Windows MSI installer (at least for 5.5.x), the default location for data files is:

C:\ProgramData\Elastic\Elasticsearch\data

The config and logs directories are siblings of data.

Upvotes: 5

Andrew Smith
Andrew Smith

Reputation: 1652

According to the documentation the data is stored in a folder called "data" in the elastic search root directory.

Upvotes: 6

Val
Val

Reputation: 217564

If you've installed ES on Linux, the default data folder is in /var/lib/elasticsearch (CentOS) or /var/lib/elasticsearch/data (Ubuntu)

If you're on Windows or if you've simply extracted ES from the ZIP/TGZ file, then you should have a data sub-folder in the extraction folder.

Upvotes: 50

Related Questions