-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request] Negation of <check>? #6
Comments
Hi @DopeforHope, Glad the plugin was helpful! But, did you try to negate via regex with negative lookahead (
For example:
Apart from that, please add some test examples for exclusion/negations. Example:
|
Yeah, the negative lookahead and inversion should suffice for most cases as well as for me. The flag seems convenient. I will try creating some test cases but I'm no ruby expert. |
@DopeforHope : Would you be able to review and test the negation support (#8) on your side? |
Test have passed and seems fine. |
Hi, it would be very nice to be able to negate the entire filter configuration. I mean, instead of letting an event pass if all checks match, I would like my event to NOT pass if all checks pass. Does that make sense ? Now I don't seem to be able to do it because there is no support for
So either I have to negate the entire filter ( What do you think ? |
Hi @nmaupu, IIUC, by "negating the entire filter configuration", you meant to introduce a global flag e.g. Apart from that, if the existing PR #8 is merged then that'll serve your purpose too, right? |
Yes, that is correct
|
Good to hear that, @nmaupu! Looks good! 👍 |
Hello,
nice work with this plugin. Makes working with Fluentd and JSON much easier. May it be possible to get a
<exclude>
(just like on thegrep
filter plugin) which just does the opposite of<check>
?Thank you very much
The text was updated successfully, but these errors were encountered: