弹性搜索在哪里存储它的数据

sli*_*pha 17 elasticsearch kibana kibana-4

所以我有这个弹性搜索安装,在插入数据与logstash,用kibana可视化它们.

conf文件中的所有内容都被注释,因此它使用的是与弹性搜索文件夹相关的默认文件夹.

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
Run Code Online (Sandbox Code Playgroud)

这怎么可能?

但是,此命令将删除数据: curl -XDELETE 'http://127.0.0.1:9200/_all'

谢谢.

ps:忘了说我在窗户上

Val*_*Val 19

如果您在Linux上安装了ES,则默认数据文件夹位于/var/lib/elasticsearch(CentOS)或/var/lib/elasticsearch/data(Ubuntu)

如果你在Windows上,或者你只是从ZIP/TGZ文件中提取ES,那么你应该data在提取文件夹中有一个子文件夹.

  • 没错,但是我的问题实际上是因为我们是网络上的几个人在运行相同的conf,并且我们的数据是共享的。3年后,我知道了:p (2认同)

C-J*_*Jay 9

查看Nodes Stats并尝试

http://127.0.0.1:9200/_nodes/stats/fs?pretty
Run Code Online (Sandbox Code Playgroud)

在带有 ElasticSearch 7 的 Windows 10 上,它显示:

"path" : "C:\\ProgramData\\Elastic\\Elasticsearch\\data\\nodes\\0"
Run Code Online (Sandbox Code Playgroud)


And*_*ith 5

根据文档,数据存储在弹性搜索根目录中名为“data”的文件夹中。


Noa*_*man 5

如果您运行 Windows MSI 安装程序(至少对于 5.5.x),数据文件的默认位置是:

C:\ProgramData\Elastic\Elasticsearch\data
Run Code Online (Sandbox Code Playgroud)

configlogs目录都是兄弟姐妹data