Replies: 2 comments 2 replies
-
Hi @dss010101 ! I think the easiest way to do this would be use https://vector.dev/docs/reference/vrl/functions/#parse_regex to pull out the bits you are interested in. |
Beta Was this translation helpful? Give feedback.
2 replies
-
Hi @dss010101 You can do it in a remap transformes with split() source = ''' |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
i have a folder structure that looks like this
/app/{batch_id}/{partition_id}/logs
i'm using the following to read filter for these logs:
include = ["/app/*/*.log"]
so for example:
I can read and parse the logs fine. But as you can see above the log names are all the same. What is different is the sub paths that has folders serving as key identifiers. i'd like to parse those out into labels associated with every row parsed for the respective log.
Any thoughts on how i can do this?
Beta Was this translation helpful? Give feedback.
All reactions