-
Hi, I have postgres log using
I tried parsing this with
I also tried following this page https://vector.dev/guides/advanced/parsing-csv-logs-with-lua/ and https://vector.dev/guides/advanced/merge-multiline-logs-with-lua/ with no luck. I keep getting this error, my suspicion is with column naming(?):
If anyone can help or has an example I can follow, I would really appreciate it. PS: I am not a programmer |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hey @masaiful ! Yeah, I see. I think what you'll need to do is make sure that the multiline logs are parsed as a single event before parsing them as CSV using |
Beta Was this translation helpful? Give feedback.
-
Thanks, @jszwedko! I did tried with But, I managed to make it work with |
Beta Was this translation helpful? Give feedback.
Hey @masaiful !
Yeah, I see. I think what you'll need to do is make sure that the multiline logs are parsed as a single event before parsing them as CSV using
parse_csv
. You can make use of the https://vector.dev/docs/reference/configuration/transforms/reduce/ transform to reduce multi-line logs into one line. Some sources, like thefile
source, also supportmultiline
configuration to reduce the lines during ingest.