弹性搜索在哪里存储它的数据 [英] Where does elastic search store it's data

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

问题描述

所以我有这个弹性搜索安装,用logstash插入数​​据,用kibana可视化。

So I have this elastic search 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'

谢谢。

ps:忘记说我在Windows上

ps : forgot to say that I'm on windows

推荐答案

如果您在Linux上安装了ES,则默认数据文件夹位于 / 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.

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

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