Converting protobuf bytes to JSON #19434
-
Hello, I'm trying to convert some protobuf messages to JSON for debugging purposes, and I noticed that the resulting JSON contains the literal bytes of bytes fields in protobuf messages. Is there a way to have protobuf bytes fields be encoded as base64 strings instead? My vector.toml file:
JSON output sample (elided and reformatted):
Notice the Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I came up with this VRL transform myself:
It seems that the bytes from the protobuf input data are just carried into JSON strings with no conversion applied. I was not sure whether VRL strings basically are byte arrays in that they can contain anything. Apparently, that is the case. |
Beta Was this translation helpful? Give feedback.
I came up with this VRL transform myself:
It seems that the bytes from the protobuf input data are just carried into JSON strings with no conversion appl…