【急】Ilogtail采集发送kafka在tags下加入自定义字段 #1128
Answered
by
messixukejia
shangyujia99
asked this question in
Help
-
使用二进制方式部署在服务器上,想收集日志到kafka,因为contents下是正常日志信息,但收集没有标识项目信息等,目前不想污染contents下的日志,想在tags下加入自定义的一些信息 |
Beta Was this translation helpful? Give feedback.
Answered by
messixukejia
Sep 20, 2023
Replies: 1 comment 13 replies
-
当前kafka日志信息如下,想在tags下加入自定义的项目信息
|
Beta Was this translation helpful? Give feedback.
13 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
想了下使用add_fileds插件添加字段以__tag__:为前缀就可以了,发送的时候会提取到tags里,具体可以看下TestConvertToSimple用例