var substitution failed for 'vector-ecs-transformation': YAMLToJSON: YAMLToJSON: found unknown escape character #23005
Answered
by
shreyasarani23
shreyasarani23
asked this question in
Q&A
-
Below is vector remap function and I am getting the error, found unknown escape character. Is there any issue in the regex expression while the yaml is been parsed? How to resolve this issue?
|
Beta Was this translation helpful? Give feedback.
Answered by
shreyasarani23
May 20, 2025
Replies: 1 comment 1 reply
-
Hi @shreyasarani23, this looks like a malformed Rust regex. Did you test if your regexes work outside of VRL? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @pront thanks for the response. Actually I was able to correct the regex by adding double
\\
in this particular linesince yaml has it's own escaping rules we need use double
\\