flusher_kafka_v2 中配置 Convert.Encoding: none 采集日志报错 #704
-
我在服务器上单独部署了一个 ilogtail 进程采集日志以验证某些功能。 PS:我想要发送到 Kafka 中的文本信息是一个【hostname + logPath + 日志正文】的格式,而不是一个 json 文本 |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 6 replies
-
把logtail_plugin.LOG贴一下 |
Beta Was this translation helpful? Give feedback.
-
不同协议支持的encoding是不一样的,具体参考:https://github.com/alibaba/ilogtail/tree/main/docs/cn/developer-guide/log-protocol |
Beta Was this translation helpful? Give feedback.
-
我的场景是将日志文件中的每一条日志以 【hostname + logPath + 日志正文】 格式拼接发送到 kafka 里,不知道是否支持这种操作 |
Beta Was this translation helpful? Give feedback.
-
【hostname + logPath + 日志正文】:能否举个例子? |
Beta Was this translation helpful? Give feedback.
不同协议支持的encoding是不一样的,具体参考:https://github.com/alibaba/ilogtail/tree/main/docs/cn/developer-guide/log-protocol