ful-bit:could not pack/validate JSON response

问题遇到的现象和发生背景

grafana监控采集不到数据

问题相关代码,请勿粘贴截图

已经注释掉Decode_Field_As escaped log try_next

运行结果及报错内容

fluent-bit [2021/12/20 02:28:42] [error] [out_es] could not pack/validate JSON response
fluent-bit{"took":0,"errors":true,"items":[{"index":{"_index":"ks-logstash-log-2021.12.16","_type":"flb_type","_id":"iLar1X0BPsuyhJ1pbxCV","status":403,"error":{"type":"cluster_block_exception","reason":"blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];"}}},{"index":{"_index":"ks-logstash-log-2021.12.16","_type":"flb_type","_id":"ibar1X0BPsuyhJ1pbxCV","status":403,"error":{"type":"cluster_block_exception","reason":"blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];"}}},{"index":{"_index":"ks-logstash-log-2021.12.16","_type":"flb_type","_id":"irar1X0BPsuyhJ1pbxCV","status":403,"error":{"type":"cluster_block_exception","reason":"blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];"}}},{"index":{"_index":"ks-logstash-log-2021.12.16","_type":"flb_type","_id":"i7ar1X0BPsuyhJ1pbxCV","status":403,"error":{"type":"cluster_block_exception","reason":"blocked by: [FORBIDDEN/12/index read-only / allow de

我的解答思路和尝试过的方法
我想要达到的结果

grafana正常采集数据

你的fluent-bit 数据 应该不是标准的json.
可能需要把fluent-bit去掉。
像这样。

{"key":"value"}
{"key":[]}

等json数据结构。