Is it possible to have regular expression strings spanning multiple lines? #25341
Unanswered
andarotajo
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Question
I'm trying to create a filter and while I think I got the filter itself down, I'm currently trying to make the YAML cleaner by avoiding super long lines.
In this case it's my regex string that gets too long for my taste. The filter itself is valid but I think the regex includes some whitespace or newline because a
appnamewith the valuecontainerddoesn't match. You can check it at this playground. Try changing theappnametosystemdfor example and it returns trueIs it possible to have multiline regular expression strings?
Vector Config
Vector Logs
No response
Beta Was this translation helpful? Give feedback.
All reactions