curl -XGET http://localhost:9200/_cluster/health\?pretty
curl -XPUT 'http://localhost:9200/_settings' -H 'content-Type:application/json' -d'
{
    "number_of_replicas": 0
}'
curl -XGET http://localhost:9200/_cat/indices
date=`date -d "-30 days" "+%Y.%m.%d"`
echo $date
/usr/bin/curl -XDELETE "http://localhost:9200/*-$date*"
❤️ 转载文章请注明出处,谢谢!❤️