要Elasticsearch要删历史数据,用http://10.0.xx.xx:9200/_plugin/head/
连接 报集群健康值:未连接
先用这方法:
在elasticsearch.yml中将ip添加进去
network.host: 192.168.1.103
保存后重新启动ES,使用http:\\ip:9100进行可视化访问
不得,再找,用如下:
打开路径 "..\elasticsearch\config\ " 下的 elasticsearch.yml 文件,在文件末尾添加如下代码:
http.cors.enabled: true
http.cors.allow-origin: "*"
http.cors.allow-methods: OPTIONS, HEAD, GET, POST, PUT, DELETE
http.cors.allow-headers: "X-Requested-With, Content-Type, Content-Length, X-User"
访问9100端口,查看连接情况。
还是不得
最后,找解决方法是:
http.cors.allow-headers: Authorization,Content-Type
或
http.cors.allow-headers: Authorization,X-Requested-With,Content-Length,Content-Type
然后删除:
在复合查询中输入http://ESIP:9200/*_metric_datapoint_201903*, 下面的框中输入{},点击“提交请求”,执行成功会返回true(删除3月份性能数据)
然后删除:
执行成功后不需要重启ES,检查磁盘空间有没有变化