1.数据流增长过快
利用脚本快速清理。
#每次删除数据流中的前10个编号较小的索引。
curl -u elastic:elastic -k -X GET "https://192.168.1.800:9200/_cat/indices?v" |grep ".ds-my_es_index-00" |awk -F " " '{print $3}' > my_es_index.log
sort -o my_es_index.log my_es_index.log
head -n 10 my_es_index.log |while read line;do
curl -u elastic:elastic -k -X DELETE https://192.168.1.800:9200/$line >/dev/null
done