-
Good afternoon!
However, I encountered an error. What is the correct way to do this? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 11 replies
-
What does your |
Beta Was this translation helpful? Give feedback.
-
I'm a bit confused here, neither If you want to parse the messages as JSON you will need to use a |
Beta Was this translation helpful? Give feedback.
-
I'm trying to use your example. [transforms.tr_log] I'll get an error. 2025-01-14T17:05:05.845922Z ERROR transform{component_kind="transform" component_id=tr_log component_type=remap}: vector::internal_events::remap: Mapping failed with event. error="function call error for "parse_json" at (11:41): unable to parse json: key must be a string at line 1 column 2" error_type="conversion_failed" stage="processing" internal_log_rate_limit=true |
Beta Was this translation helpful? Give feedback.
-
An error occurs in the following code: source = """ source: | Let me know if you need further clarification! |
Beta Was this translation helpful? Give feedback.
Here is a sample config:
The magic happens at
.message = parse_json!(string!(.message))
it basically takes the bytes from file (line by line) and constructs an object map. And finally it overwrites the.message
with the result.You try this on the VRL playground. See example.