Need help configuring Vector to transform nested JSON #20603
Replies: 2 comments 3 replies
-
If you haven't already seen it, https://playground.vrl.dev/, can be useful to test out VRL programs for transformation. What do you mean by:
? |
Beta Was this translation helpful? Give feedback.
-
Thank you, I haven't seen the playground and it is really helpful but now I can show you the issue I'm facing. I'm trying to parse the response json from one of my samples using this VRL Attached is a pretty formatted fully parsed json from one of the response samples and I want to be able to extract certian values for example: `.kubernetes.pod_name .message.app_message.correlation Hope this makes sense |
Beta Was this translation helpful? Give feedback.
-
Hi all,
I'm running Vector(0.38.0) + Loki(3.0.0) on vanilla k8s to experiment with the tech. I have some demo apps deployed that are generating logs but I cannot seem to find a way to transform(parse) the JSON from the app logs and extract the all the json objects as labels so it would be easier to search in Grafana. I've tried all the ways that are mentioned in the documentation about json transformations but none of them seem to work with my case.
I've attached my config.yaml and few raw json logs samples
config.txt
raw_log_http_request_sample.json
raw_log_http_response_sample.json
raw_log_http_response_sample1.json
Any help or a nudge in the right direction is much appreciated
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions