How to delete event data in elastic search


#1

Hi,

i tried various ways to delete event data in elasticsearch, like:

curl -XDELETE 'http://localhost:9200/_all/_search' -d
{...}

then i tried this way, but i don't understand the usage, i mean: which tool or plugin shoud i use to send request like the ones explained in the link??
https://www.elastic.co/guide/en/elasticsearch/plugins/2.2/delete-by-query-usage.html

thanks


(Camilo Sierra) #2

what is your version of ES ? ( after like is empty :confused: )


#3

sorry, i push enter while i was still writing the post :))


#4

i use the latest version of ES


(Camilo Sierra) #5

In ES 2.x for Delete you need to use a plugin.

install the plugin : https://www.elastic.co/guide/en/elasticsearch/plugins/2.0/plugins-delete-by-query.html

and hear is how you can use : 
    DELETE /twitter/tweet/_query
    {
      "query": { (1)
        "term": {
          "user": "kimchy"
        }
      }
    }

#6

Ok, thanks, i did it via sense


(system) #7