elasticsearch - 从快照中删除特定索引

elasticsearch - 从快照中删除特定索引

我用了快照和恢复 | Elasticsearch 参考设置快照,但是我没有指定需要对哪一个索引进行快照,这导致我的快照中有 390 个(目前)不需要的索引,从而占用了不必要的资源:

# curl http://0:9200/_snapshot/my_backup/_all?pretty | grep -cE '(filbeat|logstash)-2016'
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 62055  100 62055    0     0  4908k      0 --:--:-- --:--:-- --:--:-- 5050k
390
# 

我的环境:

# curl 0:9200
{
  "name" : "k_slO6-",
  "cluster_name" : "elasticsearch",
  "cluster_uuid" : "dvoVw1oaTN2V_8f3BLEYhQ",
  "version" : {
    "number" : "5.0.1",
    "build_hash" : "080bb47",
    "build_date" : "2016-11-11T22:08:49.812Z",
    "build_snapshot" : false,
    "lucene_version" : "6.2.1"
  },
  "tagline" : "You Know, for Search"
}
# 

在 Debian 8 上:

# cat /etc/debian_version 
8.6
# cat /etc/os-release 
PRETTY_NAME="Debian GNU/Linux 8 (jessie)"
NAME="Debian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=debian
HOME_URL="http://www.debian.org/"
SUPPORT_URL="http://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
# uname -a
Linux X 4.8.6-x86_64-linode78 #1 SMP Tue Nov 1 14:51:21 EDT 2016 x86_64 GNU/Linux
# 

有没有办法从快照中删除特定索引?

相关内容