childe / gohangout

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

如果input是json array,能否拆分为多个event? #181

Closed gotosre closed 1 year ago

gotosre commented 2 years ago

现在数据源是 [{log1},{log2},...,{logN}]

json解析后,能否生成多个events?

childe commented 2 years ago

不能。确定是这种格式?看着不太通用,有点难搞。

childe commented 2 years ago

需要自己写 Filter 来解析

MrLiukang commented 2 years ago

@gotosre 我这遇到了,不过是自己写了个input来专门处理这个问题的

childe commented 1 year ago

Since this issue has been inactive for a while, I will be closing it. If there is any new information or further discussion needed, please feel free to reopen this issue.