childe / gohangout

使用 golang 模仿的 Logstash。用于消费 Kafka 数据,处理后写入 ES、Clickhouse 等。
MIT License
1.01k stars 234 forks source link

支持将Json Array 转换成多行到CK吗? #242

Closed chunxinhou closed 4 months ago

chunxinhou commented 4 months ago

比如如下JSON

[
    {
    "name":"w",
    "age":99
    },
    {
    "name":"h",
    "age":88
    }
]
name age
w 99
h 88
childe commented 4 months ago

抱歉漏掉消息了,写了一个例子,你可以参考下。

https://github.com/childe/gohangout-plugin-examples/tree/master/gohangout-filter-flat-json