简体   繁体   English

使用Kibana删除文档

[英]Delete a document with Kibana

Is it possible to delete a document in Kibana, and if so, then how? 是否可以删除Kibana中的文档,如果可以,那么如何删除?

Maybe I'm misunderstanding what Kibana is for, but it seems like such a useful feature :) Right now I have to search, copy the document id, go to Sense and make the query, and then repeat this for each document I want to remove. 也许我误会了Kibana的用途,但似乎是一个有用的功能:)现在,我必须搜索,复制文档ID,转到Sense并进行查询,然后针对我想要的每个文档重复此操作去掉。

Maybe there's a plugin for Kibana that let's me do this sort of thing? 也许有一个Kibana插件,让我来做这种事情? I have tried Googling and searching here, but I must be using the wrong terms, or no one else is wondering the same thing. 我曾尝试在Google上搜索并在其中搜索内容,但我一定使用了错误的字词,否则没人会想知道同一件事。

Changing Kibana source code is the most straightforward way. 更改Kibana源代码是最直接的方法。 However it will be hard to maintain with new releases. 但是,使用新版本将很难维护。

Another way is to build a small API that get index, type and id of a document and then call the DELETE on the Rest API of ElasticSearch. 另一种方法是构建一个小的API,该API获取文档的索引,类型和ID,然后在ElasticSearch的Rest API上调用DELETE。 You can then build url in Kibana using a field which is a copy of the document id. 然后,您可以在Kibana中使用一个字段(该字段是文档ID的副本)来构建url。 Kibana字段删除

No 没有

Kibana doesn't have such feature and as I know, no plug-in exist. Kibana没有这种功能,据我所知,不存在任何插件。

I suggest that you edit Kibana's source code and add remove button. 我建议您编辑Kibana的源代码并添加删除按钮。 Kibana is Open Source (Apache License, Version 2.0), So change it and simply add a button for removing documents or ... Kibana是开放源代码(Apache许可证,版本2.0),因此请对其进行更改,只需添加一个按钮即可删除文档或...

I modified my Kibaba several time, it's simple 我几次修改了Kibaba,很简单

Go to Kibana DevTools and Execute delete request: 转到Kibana DevTools并执行删除请求:

DELETE IndexName/DocType/DocId
{}

Sample screen shot 屏幕截图示例

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM