-
Hi. Please tell me, can I wrap the output-transform in square brackets? This is the format my application requires. That's right, that's the only way |
Beta Was this translation helpful? Give feedback.
Answered by
jszwedko
Dec 3, 2024
Replies: 1 comment 4 replies
-
You can use a remap like so. BTW wrapping the top level output in an array |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Correct, if an array is emitted by a
remap
transform than each element is then emitted as a separate event per mapping one log into multiple.I think here you may want to actually do the encoding in
remap
to avoid this. Something like:Using the
text
codec should result in only themessage
field being output.