-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Add regex support functionality #31424
Conversation
💚 CLA has been signed |
Pinging @elastic/integrations (Team:Integrations) |
Please wait. My PR is gigantic already. |
@kvch could you ping me when your PR gets merged? I'll adapt my changes and rebase then |
This pull request is now in conflicts. Could you fix it? 🙏
|
@gonzaloe thank you for waiting, now the big change is merged, please update your PR. |
thanks for the notification @rdner, seems i'll have to move the mapstr implementation to elastic-agent-libs project, then import a new version here once that code is merged, is there a label to pause the review for now? or should i ping back once the other PR gets merged and everything working here again? |
@rdner in case you can take a quick look there -> elastic/elastic-agent-libs#45 |
@gonzaloe it's approved, feel free to proceed. |
This pull request is now in conflicts. Could you fix it? 🙏
|
@rdner thanks! I've updated the dependency already :)
|
@gonzaloe sorry I missed where you mentioned the bug. Regardless, I think we should make one change at a time. Let's finish with this PR first and address any other bug later. After updating a dependency one must run |
@rdner perfect about addressing the other bug, i'll create a separate PR after. I understand about the make update, now should be addressed that (and the change on dependency for the lint warning). Thanks |
@gonzaloe I have to ask you to run You can also run this step locally with |
@rdner sorry for the inconvenience, I had first the problem with elastic-agent-libs and ran the update, but then with the new config package, but forgot to run make update now 😅 . I believe things should be in order |
/test |
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.
I see e2e tests passed here https://beats-ci.elastic.co/blue/organizations/jenkins/e2e-tests%2Fe2e-testing-mbp/detail/main/906/pipeline but it's not reported to Github for some reason. I think it's okay to merge it now.
@rdner good morning, E2E Tests are configured to run in every branch once the previous steps are successful? or only run in main/version branches? |
@gonzaloe the E2E tests passed (https://beats-ci.elastic.co/blue/organizations/jenkins/e2e-tests%2Fe2e-testing-mbp/detail/main/908/pipeline) I think something has been changed and they are not reported to Github correctly anymore. I'm going to approve the PR, we can merge it now. |
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.
LGTM,
@gonzaloe please open another PR with the documentation change.
Now it's possible to set a regular expression instead of just a field name in order to drop fields. Co-authored-by: Gonzalo Espeche <gonzalo.espeche@elastic.co>
Now it's possible to set a regular expression instead of just a field name in order to drop fields. Co-authored-by: Gonzalo Espeche <gonzalo.espeche@elastic.co>
What does this PR do?
Added regex support for drop_fields processor as requested in #12923
Fields that are declared between slashes (as in Painless scripts) are going to be considered regex and all matches within field names will be removed
Why is it important?
So deleting field-by-field with name can be avoided while using modules that declare a big amount of fields.
Checklist
- [ ] I have made corresponding change to the default configuration filesCHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.How to test this PR locally
Configure a field using a regex pattern under drop_fields processor, on fields array, between slashes /. For e.g.:
Related issues