elasticsearch Elasticsearch在哪里存储数据?,elasticsearch,kibana,kibana-4,elasticsearch,Kibana,Kibana 4" /> elasticsearch Elasticsearch在哪里存储数据?,elasticsearch,kibana,kibana-4,elasticsearch,Kibana,Kibana 4" />

elasticsearch Elasticsearch在哪里存储数据?

elasticsearch Elasticsearch在哪里存储数据?,elasticsearch,kibana,kibana-4,elasticsearch,Kibana,Kibana 4,所以我有一个Elasticsearch安装,用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-ext

所以我有一个Elasticsearch安装,用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
这怎么可能

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

谢谢


ps:忘了说我在windows上了

如果你已经在Linux上安装了ES,它就在
/var/lib/elasticsearch
(CentOS)或
/var/lib/elasticsearch/data
(Ubuntu)


如果您使用的是Windows,或者您只是从ZIP/TGZ文件中提取了ES,那么您应该在提取文件夹中有一个子文件夹。

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

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

C:\ProgramData\Elastic\Elasticsearch\data

配置
日志
目录是
数据
的同级目录

弹性搜索将数据存储在文件夹“data”下,如上所述。 您的本地网络上还有其他弹性搜索实例吗? 如果是,请检查群集名称。如果在同一网络中使用相同的群集名称,它将共享数据

有关更多信息,请参阅链接。

在centos上:

/var/lib/elasticsearch

它应该在您提取的elasticsearch中。像es/data之类的东西查看一下

在使用ElasticSearch 7的Windows 10上,它显示:

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

这就是我要说的,我有一个数据文件夹,但是kibana仍然显示数据,即使删除了这个数据文件夹。你是什么系统的?Linux还是Windows?那么你是如何删除ES文件夹的呢?我转到“project”文件夹,其中包含“elasticsearch-1.7.2”文件夹,右键单击并删除它(是的,在你说得对之前我停止了弹性搜索实例,但事实上我的问题是因为我们是网络上运行相同配置的几个人,我们的数据是共享的。3年后,我知道:Ubuntu上的pOn elastic search 7,路径也是/var/lb/elasticsearchYes,但删除elasti后数据仍然存在c search root directory此时您可能正在运行缓存。使用CURL发送的delete命令将是正确的处理方法。这只是出于好奇,缓存在哪里?因为我删除了所有内容。它是否在appdata中存储了一些内容?例如,您是否尝试从Chrome中的匿名窗口访问Kibanae?搜索数据时,可能会检索到浏览器的缓存。
"path" : "C:\\ProgramData\\Elastic\\Elasticsearch\\data\\nodes\\0"