-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
internal: add conditionals evaluation API #9749
base: master
Are you sure you want to change the base?
Conversation
6982318
to
047eec3
Compare
Leaksanitizer complains that there are memory leaks. |
047eec3
to
8b5753a
Compare
Done |
8b5753a
to
683408b
Compare
this is a library to evaluate conditionals based on rules, rules are declared as matching elements using record accessor. Signed-off-by: Jorge Niedbalski <[email protected]>
683408b
to
477f1f2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks attractive on my side. A big 👍.
Description of the change
Implement the base API for conditionals evaluation using record accessor, this API
will be initially used by a specific log processor, but eventually this same interface can be used
as a generic conditional evaluation for processor.
This PR:
Further description
Supported condition operators
The following are the operator types supported for conditions
Supported rule operators
The following are the operator types supported for each rule
Types
The following are the basic types to support both conditional and rules.
Library interface
The following is the proposed interface for parsing conditionals and evaluating rules.
Tests
Tests are passing and no address sanitizer issue has been found
Usage of the API
How this will be used
Fluent Bit is licensed under Apache 2.0, by submitting this pull request I understand that this code will be released under the terms of that license.