I'm trying to delete some specific documents from an index with a query
POST /.ds-logs-system.syslog-default-2022.10.30-000004/_delete_by_query?pretty
{
"query": {
"match": {
"process.name": "install.sh"
}
}
}
but getting this error
{
"took": 304,
"timed_out": false,
"total": 1804058,
"deleted": 0,
"batches": 1,
"version_conflicts": 1000,
"noops": 0,
"retries": {
"bulk": 0,
"search": 0
},
"throttled_millis": 0,
"requests_per_second": -1,
"throttled_until_millis": 0,
"failures": [
{
"index": ".ds-logs-system.syslog-default-2022.10.30-000004",
"id": "7xZevyoQBIdT1jTV9t_po",
"cause": {
"type": "version_conflict_engine_exception",
"reason": "[7xZevyoQBIdT1jTV9t_po]: version conflict, required seqNo [5984267], primary term [11]. but no document was found",
"index_uuid": "1W9e33u1SECGR5jd1_NI2k",
"shard": "0",
"index": ".ds-logs-system.syslog-default-2022.10.30-000004"
},
"status": 409
},
How to resolve this error?
OR
How to delete documents by query by any other method?
And yes I recently updated from 8.4 to 8.5.2