使用快照分别备份kibana配置及logstash数据

创建仓库 官方文档链接

PUT _snapshot/my_backup/ 
{
    "type": "fs", 
    "settings": {
        "location": "/mount/backups/my_backup" 
    }
}

location 需要添加到配置文件`elasticsearch.yml的path.repo参数中

创建kibana的快照

PUT _snapshot/my_backup/kibana_20170815
{
    "indices": ".kibana"
}

创建logstash的快照

PUT _snapshot/my_backup/logstash_20170815
{
    "indices": "logstash-*"
}

查看已创建的快照 官方文档

GET _snapshot/my_backup/_all

恢复快照 官方文档

POST _snapshot/my_backup/kibana_20170815/_restore
POST _snapshot/my_backup/logstash_20170815/_restore

删除快照 官方文档

DELETE _snapshot/my_backup/logstash_20170815
DELETE _snapshot/my_backup/kibana_20170815

确定当前es设置情况

GET _nodes/settings/?pretty=true

参考链接