Elasticsearch将数据存储在哪里? [英] Where does Elasticsearch store its data?

查看:2994
本文介绍了Elasticsearch将数据存储在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我有这个Elasticsearch安装,用logstash插入数​​据,并用kibana可视化它们。

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

conf文件中的所有内容均已注释,因此它使用的是相对于默认文件夹的默认文件夹

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

这怎么可能?

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

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

谢谢。

ps:忘了说我在Windows上

ps : forgot to say that I'm on windows

推荐答案

如果您在Linux上安装了ES,则< href = https://www.elastic.co/guide/zh-CN/elasticsearch/reference/current/setup-dir-layout.html#default-paths rel = noreferrer>默认数据文件夹是在 / var / lib / elasticsearch (CentOS)或 / var / lib / elasticsearch / data (Ubuntu)

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

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

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.

这篇关于Elasticsearch将数据存储在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆