Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Delete a document with Kibana

Is it possible to delete a document in Kibana, and if so, then how?

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.

Maybe there's a plugin for Kibana that let's me do this sort of thing? I have tried Googling and searching here, but I must be using the wrong terms, or no one else is wondering the same thing.

like image 610
runemoennike Avatar asked Dec 19 '22 14:12

runemoennike


2 Answers

Go to Kibana DevTools and Execute delete request:

DELETE IndexName/DocType/DocId
{}

Sample screen shot

like image 59
Ynis Yohanson Avatar answered Jan 02 '23 10:01

Ynis Yohanson


Changing Kibana source code is the most straightforward way. 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. You can then build url in Kibana using a field which is a copy of the document id. Kibana field delete

like image 34
Hugodby Avatar answered Jan 02 '23 09:01

Hugodby