Replies: 1 comment 4 replies
-
Hi @rcmv , Could you share a full Vector config? The VRL source you have there is on one line, which I don't think will work properly. |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
I have a CSV like the one below which I want to transform into json.
I've the following piece of code to convert the CSV file into json using remap/parse_csv:
The output is something like this:
I would like to have instead something like this:
I've tried some changes on the source like the one below but got no joy.
source = """ row = parse_csv!(.message) .Timestamp = row[0] .country = row[1] .duration = parse_duration!(row[2], unit:"s") .quality = to_float!(row[3]) del(.source_type) del(.timestamp) del(.file) del(.host) del(.message) """
Output:
Can someone help me with this?
BR
Beta Was this translation helpful? Give feedback.
All reactions