Hi All,
I have used following "delete_by_query" to delete large number of documents from an index of my ES.
POST /winlogbeat-7.12.0-2021.05.20-000029/_delete_by_query
{
"query": {
"match": {
"event.code": "5157"
}
}
}
The first thing I noticed is, the delete operation is taking long time to delete the documents.
Apart from that I have noticed, the size of the index is increasing though the document count reduces.
The intention of the delete operation was to free the storage by removing less important logs.
Can someone please let me know why this is happening and guide me to free the space correctly.
Thanks
Billz1026