Metrics filters are not working properly #21890
-
Hi team
Error is :
Also tried this (tostring() function correction):
Error is:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
There's no
^ This means that you can remove the But you also need to handle the
(you can drop the "default" since it will never match) I can see how this should be a warning instead of an error, worth requesting this here: https://github.com/vectordotdev/vrl/issues/new. |
Beta Was this translation helpful? Give feedback.
-
FYI, I already created an issue: vectordotdev/vrl#1143 |
Beta Was this translation helpful? Give feedback.
There's no
tostring
. There's a to_string coercion function.^ This means that you can remove the
!
like so somatch(to_string(.name) ...
.But you also need to handle the
to_string
error so the final version is:(you can drop the "default" since it will never match)
I can see how this should be a warning instead of an error, worth requesting this here: https://github.com/vectordotdev/vrl/issues/new.