Skip to content

var substitution failed for 'vector-ecs-transformation': YAMLToJSON: YAMLToJSON: found unknown escape character #23005

Discussion options

You must be logged in to vote

Hi @pront thanks for the response. Actually I was able to correct the regex by adding double \\ in this particular line

 if (exists(."service-x".uri) && !match(to_string!(."service-x".uri), r'.*/(ns)/(v\\d+)/(account)/([A-Za-z0-9]+)/(number).*')) ||

since yaml has it's own escaping rules we need use double \\

Replies: 1 comment 1 reply

Comment options

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

Answer selected by pront
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
domain: vrl Anything related to the Vector Remap Language
2 participants