Skip to content

Regex support in Match for Filter plugings #7679

Answered by abhijaypatne
abhijaypatne asked this question in Q&A
Discussion options

You must be logged in to vote

Found the answer

TIL: there is a key named Match_Regex and it works in all the places where Match can be used.
Match only support * as a wildcard
Match_Regex supports whole regex

Source: https://docs.fluentbit.io/manual/v/1.3/configuration/file

My modified config

    [FILTER]
        Name                      throttle
        Match_Regex               part1.(?!xyz).*.part4
        Rate                      1
        Window                    300
        Interval                  1s

Thanks to Anurag Gupta for pointing to this in Fluentbit Slack.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by abhijaypatne
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant