How to read entire JSON file and apply remap ? #21261
Replies: 3 comments 6 replies
-
Hi @sankyfunky , Vector sources are generally designed to read input line-by-line. Is it possible to change your input to have one event per line? |
Beta Was this translation helpful? Give feedback.
-
unfortunately, I am on the consumer side. I can't change it to one event per line. Not for this use case. is that a limitation of vector ? |
Beta Was this translation helpful? Give feedback.
-
I over simplified the json in the example above. But I tried different regex pattern, it is not accurately detecting the multiline.condition_pattern = "^}" in my case where I am having nested close curly braces "}". Can we not detect all till EOF ? |
Beta Was this translation helpful? Give feedback.
-
I have the use case where I have the valid JSON files are being generated in a folder.
I want to parse those file and extract events from it.
file01.json and other files are all same format like this.
events needs to be generated
event01
event02
Just like that. I want all events to be streamed.
how should I write my source and transform config.
this is what i have but it reads line by line and I can't parse json. Is it something available out of the box ?
Beta Was this translation helpful? Give feedback.
All reactions