你ELK的 Kibana 老崩么? {“statusCode“:500, “error"/Internal Server Error", "message":”[parent] Data too large, data for [<http_request>] would be [998723778/952. 4mb], which is larger than the limit...

ELK 系统中访问报错 Kibana 报错:

{“statusCode“:500, “error"/Internal Server Error", "message":”[parent] Data too large, data for [<http_request>] would be [998723778/952. 4mb], which is larger than the limit...

不用怀疑,ElasticSearch 的索引太大了

 

进入服务器一条条删吧

# 删除索引 python-logstash-2022.08.18
curl -XDELETE 'http://127.0.0.1:9200/python-logstash-2022.08.18'

为啥一条一条删?因为不能用 * 通配符呗

太麻烦了~ 还不一定删除成功

 

那就用 * 通配符吧

# 开启通配符模糊匹配删除索引
curl -XPUT -H "Content-Type:application/json" http://127.0.0.1:9200/_cluster/settings -d '{"persistent": {"action.destructive_requires_name": false}}}'

 

又报错,这次是啥?

{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"text is empty"}],"type":"illegal_argument_exception","reason":"text is empty"},"status":400}

害,你使用是root删除,要用 ElasticSearch 用户删除

curl --user 用户名:密码  -XDELETE 'http://127.0.0.1:9200/python-logstash-2022.08.18'

 

行了,告辞

 

posted @ 2022-09-29 17:55  林诺欧巴  阅读(1052)  评论(0编辑  收藏  举报