#报错原因。根据提示找到对应索引。删除red索引。即可。
[root@ZJHZ-ELK-A002 indices]# curl -XGET -u 'elastic:feiba2020!!..' http://localhost:9200/_cat/indices | grep monitoring
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0red open .monitoring-kibana-6-2023.04.06 T7llKflxSEKCR5-iJYQaPA 1 1
green open .monitoring-kibana-6-2023.04.07 iIdG286hS7KCZ-fnYjkxBw 1 1 201 0 449.2kb 229.3kb
yellow open .monitoring-alerts-6 7GIWhoSOTPOLyU7SFwMzJQ 1 1 1 0 12.5kb 12.5kb
100 104k 10green open .monitoring-es-6-2023.04.07 3Z7Y6YQVSIOyXdH_116xUQ 1 1 250620 1980 113.9mb 55.5mb
0 104k 0 0 95704 0 0:00:01 0:00:01 --:--:-- 95751
[root@ZJHZ-ELK-A002 indices]# curl -XDELETE -u 'elastic:feiba2020!!..' http://localhost:9200/.monitoring-kibana-6-2023.04.06;
/data/apps-data/elasticsearch/nodes/0/indices是es的数据目录。当磁盘空间不足时。根据索引大小过滤出具体索引。再用接口删除索引。