Replies: 1 comment 5 replies
-
Hi @rcmv ! You could probably use I'd suggest you consider changing your input files or preprocessing them before having Vector ingest them, though, to a format more easily read by Vector (e.g. JSON). That is: convert the CSV files to JSON and then have Vector read those. See https://vector.dev/guides/advanced/parsing-csv-logs-with-lua/ for a guide for parsing CSV with Lua if you do decide to pursue that route. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
I have three different CSV files. Below the CSVs (with only one row for simplicity sake):
CSV Type 1:
CSV Type 2:
CSV Type 3:
Now I'm in doubt on how to do this.
I guess I would need to collect first, the columns of the CSV being processed (missing code on the first if statement) and based on those columns, fill the associated values.
Sample code below:
Desired Output:
Any ideas about the code inside those two if statements?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions