Hi There,
I am having issues cleaning out old data from my ES cluster.
I have installed Sense "Chrome plugin" to make requests to my cluster.
I am trying to delete documents between specific dates. I ahve 3 ES
clusters which all show up correctly in my bigdesk view.
The problem/issue I am having is that when I run the following Delete
request. The output sugests that the information was deleted.
DELETE /_all/_query
{
"filtered" : {
"query" : {
"match_all" : {}
},
"filter": {
"and": [
{
"range": {
"Time": {
"from": "20120101T000000",
"to": "20130901T000000"
}
}
},
{
"term": {
"Source": 1
}
}
]
}
}
}
I suspect the issue is down to the fact that I am running a ES cluster with
3 nodes. I hypothesis that the delete request was only performed on the
node the request went to. (The URL I am using is a DNS name that gets proxy
balanced via Apache to one of the three ES nodes)
Unless my understanding is incorrect, I thought Delete API would handle the
requests and send the delete requirements to all nodes to delete the
necessary entries in all indices, Since I used the _all indices. The reason
I got the hypothesis above from the fact that the indices listed in the
response are not all the indices on the system.
Can anyone offer any guidance to the request I need to construct to delete
entries before a specific time stamp?
Regards
John
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.