删除所有索引名字为 linux-varlog-*的

curl -XDELETE '192.168.126.17:9200/linux-varlog-*'

定时清理索引


#!/bin/bash

shijian=`date +%Y.%m.%d -d "3 days ago"`
curl -XDELETE "192.168.0.231:9200/filebeat-${shijian}"
Copyright © opschina.org 2017 with zzlyzq@gmail.com all right reserved,powered by Gitbook该文件修订时间: 2017-07-11 11:32:48

results matching ""

    No results matching ""