[英]Fluentd change output encapsulation
I have a fluentd record我有流利的记录
{"key": "value"}
but i wish to emit this record encapsulated inside an array (even if only one), like so:但我希望将这个记录封装在一个数组中(即使只有一个),如下所示:
[{"key": "value"}]
Is there any configuration i can use to obtain this result?我可以使用任何配置来获得此结果吗?
So, apparently this can be solved with fluentd in a recent version.因此,显然这可以在最新版本中使用 fluentd 解决。
My problem is that i'm using an old version and this is not available.我的问题是我使用的是旧版本,而此版本不可用。
See: https://docs.fluentd.org/output/http#json_array请参阅: https : //docs.fluentd.org/output/http#json_array
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.