ES delete logs between timestamp range


(shaheryar) #1

Can any body point out what's wrong with the query?

POST logstash-2019.02/_delete_by_query
{
"query": {
"range":{
"@timestamp" : {
"gte": "2019-02-11T19:00:00Z"
}
}
}
}

Output

{
"took": 0,
"timed_out": false,
"total": 0,
"deleted": 0,
"batches": 0,
"version_conflicts": 0,
"noops": 0,
"retries": {
"bulk": 0,
"search": 0
},
"throttled_millis": 0,
"requests_per_second": -1,
"throttled_until_millis": 0,
"failures":
}


(shaheryar) #2

It got solved


(David Pilato) #3

Then you should may be tell the community here what was wrong and how you solved it.