-
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
grep: add common grep APIs #7336
base: master
Are you sure you want to change the base?
Conversation
Hi @nokute78, please let me know when you are done with this PR so I can review it. I was about to do it but I noticed you pushed some changes and cancelled the process. I was going to point out some coding style changes such as adding a space between the structure name and opening bracket and keeping the bracken in the same line. Additionally, when subscripting the first character of strings please use Other than that it's a great improvement, thank you very much. |
There are a few sds related things I forgot to mention in my previous message :
|
@leonardo-albertovich Could you review it and add review comment to clarify line No?
These codes came from filter_grep. I just moved from the plugin code. I fixed to use
What is the reason ? |
I understand that the code comes from The reason why we are switching from Other things such as In the end, the goal is to have a more homogeneous code base and a reasonable dependency graph. |
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.
This is ready to be merged @edsiper
Ping. |
@edsiper ping |
I merged from master. Valgrind output of flb_it_grep
|
This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days. |
Signed-off-by: Takahiro Yamashita <[email protected]>
Signed-off-by: Takahiro Yamashita <[email protected]>
Signed-off-by: Takahiro Yamashita <[email protected]>
Signed-off-by: Takahiro Yamashita <[email protected]>
Signed-off-by: Takahiro Yamashita <[email protected]>
Signed-off-by: Takahiro Yamashita <[email protected]>
Fix conflict. |
This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days. |
This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days. |
This patch is to add a common API to grep.
Currently filter_grep and filter_log_to_metrics implement grep individually.
This patch adds src/flb_grep.c and filter_grep/filter_log_to_metrics use the API.
Enter
[N/A]
in the box, if an item is not applicable to your change.Testing
Before we can approve your change; please submit the following in a comment:
If this is a change to packaging of containers or native binaries then please confirm it works for all targets.
ok-package-test
label to test for all targets (requires maintainer to do).Documentation
Backporting
Debug/Valgrind output
flb-rt-filter_grep:
flb-rt-filter_log_to_metrics:
flb-it-grep:
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.