kentik / ktranslate

System for pulling and pushing network data.
Apache License 2.0
56 stars 25 forks source link

Adding has filter logic for strings #758

Open i3149 opened 1 day ago

i3149 commented 1 day ago

Adding in has and notHas filters for strings. Before, there wasn't a good way to test if a given filter key is present regardless of value. Operators are ~= and !~. For example:

        "string,custom_str.foo,~=,",       // This contains the key custom_str.foo with any value. 
        "string,custom_str.foo,!~,",        // This returns true if the key custom_str.foo is not set.