Hello. I have some hosts that I need to delete all the syslog data of. So I try the query:
curl -XGET 'http://log:9200/logstash-2015.05.23/_query' -d '{
"query": {
"filtered": {
"query": {
"bool": {
"should": [
{
"query_string": {
"query": "host:vm*"
}
}
]
}
},
"filter": {
"bool": {
"must": [
{
"range": {
"@timestamp": {
"from": 1420116612709,
"to": 1432468230716
}
}
}
]
}
}
}
}
}'
That gives me
"took" : 63,
"timed_out" : false,
"_shards" : {
"total" : 5,
"successful" : 5,
"failed" : 0
},
"hits" : {
"total" : 2365117,
etc. some output. So I figure it got something and then I replace the XGET by XDELETE but it gives me:
{"error":"ElasticsearchIllegalArgumentException[No feature for name [_query]]","status":400}
Sorry if this a stupid question but I'm completely new to this stuff. How do I delete all the data from hosts host:vm* ?