Skip to content

is there an easier way to do basename/dirname when using file source #22657

Closed Answered by pront
shantanugadgil asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @shantanugadgil, I think what you have here is the correct way to achieve this: VRL playground example

You can also open a new VRL enhancement request: https://github.com/vectordotdev/vrl/issues to request a new VRL function to produce the basename.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@shantanugadgil
Comment options

Answer selected by shantanugadgil
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants