How to delete one piece of data from elasticsearch


(shao-yu,wang) #1

As following shows:
the system recorded a duplicate data. And I want to delete one piece of data. How can I do to remove data. By id or somehow else?

Data sample

path:/var/log/command.log @timestamp:December 18th 2017, 13:30:51.000 garbege: 26 pushcode:b10317004 @version:1 host:jupyter message: 26 b10317004 2017-12-18-13:30:51 git push timestamp:2017-12-18-13:30:51 _id:AWBoGqQaouxDoQZkzgq2 _type:logs _index:logstash-2017.12.18 _score: -

path:/var/log/command.log @timestamp:December 18th 2017, 13:30:51.000 garbege: 26 pushcode:b10317004 @version:1 host:jupyter message: 26 b10317004 2017-12-18-13:30:51 git push timestamp:2017-12-18-13:30:51 _id:AWBoGuqJouxDoQZkzgq3 _type:logs _index:logstash-2017.12.18 _score: -


(David Pilato) #2

This:

DELETE logstash-2017.12.18/logs/AWBoGuqJouxDoQZkzgq3

(shao-yu,wang) #3

Thanks for the reply.
But I can't find the file or directory such as logstash-2017.12.18/logs/
even I try to find out all file or directory of "logstash"
And I use the Ubuntu system install ELK and do not change th3 config setting


(shao-yu,wang) #4

Thanks, I delete data use command like:
curl -XDELETE localhost:9200/logstash-2017.12.18/logs/AWBoGuqJouxDoQZkzgq3


(system) #5

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.