Regex tokens for start/end of string not working? #23169
Answered
by
pront
andarotajo
asked this question in
General
-
I'm really new to vector and trying to get my first file log working and stumbled upon this problem when playing around with the VRL playground. I have the following event: {
"file": "/var/log/home-assistant/home-assistant.log",
"host": "d272443a2595",
"message": "2025-06-09 19:08:03.406 WARNING (MainThread) [alexapy.helpers] message",
"source_type": "file",
"timestamp": "2025-06-09T17:10:26.246103748Z"
} Parsing it with the following script didn't work:
But when I remove the |
Beta Was this translation helpful? Give feedback.
Answered by
pront
Jul 1, 2025
Replies: 1 comment 1 reply
-
Hi @andarotajo, see this playground example. Seems to me both regexes work. Can you describe the error you are seeing? |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
andarotajo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @andarotajo, see this playground example. Seems to me both regexes work. Can you describe the error you are seeing?