elasticsearch,logstash,kibana,Logging,elasticsearch,Logstash,Kibana" /> elasticsearch,logstash,kibana,Logging,elasticsearch,Logstash,Kibana" />

Logging 日志存储在哪里保存我的数据?

Logging 日志存储在哪里保存我的数据?,logging,elasticsearch,logstash,kibana,Logging,elasticsearch,Logstash,Kibana,我想知道log stash在哪里保存我的数据,我想删除所有现有数据,因为我上传时出错,我试图删除所有索引并清除缓存,但我的数据仍然存在于kibana上。我检查了elasticsearch.yml文件中的数据位置,手动删除了所有索引,但我的数据仍在kibana上。有人能帮我删除现有数据吗 提前谢谢。这是我的弹性搜索配置文件: cluster.name: elastic search network.host: **** node.name: "mole" node.data: true node.

我想知道log stash在哪里保存我的数据,我想删除所有现有数据,因为我上传时出错,我试图删除所有索引并清除缓存,但我的数据仍然存在于kibana上。我检查了elasticsearch.yml文件中的数据位置,手动删除了所有索引,但我的数据仍在kibana上。有人能帮我删除现有数据吗


提前谢谢。这是我的弹性搜索配置文件:

cluster.name: elastic search
network.host: ****
node.name: "mole"
node.data: true
node.master: true
path.data: /opt/data/elasticsearch/
path.work: /opt/data/elasticsearch/

删除索引API允许删除现有索引

$ curl -XDELETE 'http://localhost:9200/twitter/'
假设您在9200端口运行elasticsearch。 上面的示例删除了一个名为twitter的索引。需要指定索引、别名或通配符表达式

删除索引API还可以应用于多个索引,或者应用于所有索引(请小心!)

curl -XDELETE 'http://localhost:9200/_all'
要禁用通过通配符或_all删除索引的功能,请将action.destructive_要求将配置中的_name设置为true。还可以通过群集更新设置api更改此设置


您需要为logstash和elasticsearch提供配置文件,以便任何人都能帮助您。这是我的elastic search配置文件:cluster.name:elastic search network.host:***node.name:“mole”node.data:true node.master:true path.data:/opt/data/elasticsearch/path.work:/opt/data/elasticsearch/Vova Lando,您好,谢谢您的回复。我也尝试过同样的方法,但是数据仍然存在于我的kibana仪表板上,我想清除所有数据,然后我可以运行执行脚本来获取新数据。这对我很有效,第二行:“curl-XDELETE”“”你确定在端口9200上运行elasticsearch吗?查看/etc/elasticsearch/elasticsearch.ymlVova Lando上的elasticsearch配置,是的,我非常确定$curl-XDELETE localhost:9200/antivirus*/{“确认”:true},但我的数据仍然存在于kibana上。