-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Receive logs in normal JSON or plain text from Kafka. #20734
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
That sounds like a good enhancement to me (I implemented raw support, maybe raw should move from byte array to string). |
…ver (open-telemetry#20734) The decoder is copied from operator helper in stanza to coreinternal. Use a config like `encoding: text_utf-8` to specify the character encoding. Signed-off-by: zhanghonghaobj <[email protected]>
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
This issue has been closed as inactive because it has been stale for 120 days with no activity. |
…ver (open-telemetry#20734) The decoder is copied from operator helper in stanza to coreinternal. Use a config like `encoding: text_utf-8` to specify the character encoding.
Component(s)
receiver/kafka
Is your feature request related to a problem? Please describe.
Some tools and cloud services may send logs to Kafka in JSON format or even as plain text. We don't have a way to receive them yet. The
raw
unmarshaler can only receive them as bytes, and we can't even find any component to decode them into strings. Also, it doesn't addObservedTime
to the logs, which should be added.Describe the solution you'd like
We should add a text unmarshaler to decode the logs from Kafka messages into strings, and add
ObservedTime
to them. For compatibility, encodings rather thanUTF-8
, such asGBK
,BIG5
,SHIFT_JIS
, etc. should be supported.Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: