Skip to content

VRL parse_json depth #12244

Answered by jszwedko
nabokihms asked this question in Q&A
Apr 15, 2022 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

Hi @nabokihms !

I wonder if flatten could help here? https://vector.dev/docs/reference/vrl/functions/#flatten . I'm not thinking of an easy way to do that only after a certain depth in VRL though. I think we could enhance flatten with that functionality though. Would that work for you? Otherwise, we could definitely add another function or option to parse_json to enable this.

lua is much slower, but is an option. To workaround the single thread issue, you could partition the data and run it through N lua transforms, joining it back together afterwards. We do have some plans to allow lua and other "stateful" transforms run in parallel in the near-ish future.

cc/ @JeanMertz this could be an…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@nabokihms
Comment options

@JeanMertz
Comment options

@nabokihms
Comment options

Answer selected by nabokihms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants