-
Notifications
You must be signed in to change notification settings - Fork 202
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
Create a decoder processor to decode Event keys #3841
Comments
It may be advantageous to have a different processors for different encodings for a few reasons.
Compression might be a special case. Maybe we'd have a single processor for that. Though it wouldn't help with overall dependency reduction.
|
I think we need to support "/path/to/proto_definition.proto" to be S3 path as well, right? |
That is probably ideal, though it could also come as a follow-on based on feedback. Also I think we need to make a more general structure for getting data from S3, file path, etc. The current approach is rather cumbersome both for users and developers. We could do something similar to what we did with AWS Secrets and hopefully will do with environment variables. |
For protobuf decoding, what's expected format of the file
I think it would be difficult to support such cases because such files need to be compiled. It looks like if the above file compiled and a descriptor file is created using the following command
Then using the file |
@kkondaka , What exactly is the descriptor in this proposal? Is it the "File descriptor" JSON in the following documentation? |
We should also consider how to handle Protobuf imports. |
Is your feature request related to a problem? Please describe.
As a user of Data Prepper, my Events contain keys that are encoded in different formats, such as
gzip
,base64
, andprotobuf
(https://protobuf.dev/programming-guides/encoding/).Sample Event
Describe the solution you'd like
A new processor called a
decoder
processor that can decode various encodings. The following configuration example would decode the three values in the example Event aboveTasks
The text was updated successfully, but these errors were encountered: