Due to a miss setting, we have some docs in the ES that are GZ compressed. We fixed the file, and the info we need is loaded ok. But
we wish to delete the docs that are gz compressed.
I find the docs I want to delete. Ok no problem. The sources are message.gz file named, so we can key on the "source" of a name "*gz$"
GET filebeat-/_search
{
"query": {
"match": {
"source:" : ".gz$"
}
}
}
But, when we try to delete the gz docs, it does not work.
"total": 0,
"deleted": 0,
? So is the query bad, or are we doing some thing not right for delete by query ? Help ?
POST filebeat-/_delete_by_query
{
"query": {
"match": {
"source:" : ".gz$"
}
}
}