how to use filter type support wildcard? #15215
Answered
by
spencergilbert
trustnote-wang
asked this question in
Q&A
-
[transforms.service_logs] I want to filter out that the service field contains 'cross' string,but it doesn't work, how to do it? |
Beta Was this translation helpful? Give feedback.
Answered by
spencergilbert
Nov 15, 2022
Replies: 1 comment 1 reply
-
👋 Hi, @trustnote-wang. You can use the VRL functions documented at https://vrl.dev/functions. You probably want to use ends_with based on your example glob. [transforms.service_logs]
type = "filter"
inputs = [ "parse_logs_download" ]
condition = '''
ends_with!(.service, "cross")
''' |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
trustnote-wang
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
👋
Hi, @trustnote-wang. You can use the VRL functions documented at https://vrl.dev/functions. You probably want to use ends_with based on your example glob.