-
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
[filebeat][httpjson] Initial implementation of httpjson v2 #22320
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
botelastic
bot
added
the
needs_team
Indicates that the issue/PR needs a Team:* label
label
Oct 30, 2020
botelastic
bot
removed
the
needs_team
Indicates that the issue/PR needs a Team:* label
label
Oct 30, 2020
Collaborator
Collaborator
💚 Build Succeeded
Expand to view the summary
Build stats
Test stats 🧪
💚 Flaky test reportTests succeeded. Expand to view the summary
Test stats 🧪
|
This was referenced Nov 16, 2020
marc-gr
force-pushed
the
httpjson_v2
branch
13 times, most recently
from
November 25, 2020 14:30
1b23270
to
89c280f
Compare
6 tasks
Pinging @elastic/security-external-integrations (Team:Security-External Integrations) |
- Modify context done error log - Change is_v2 config bool for string config_version - Change retryable logger to be created from input logger
43 tasks
marc-gr
added a commit
to marc-gr/beats
that referenced
this pull request
Dec 9, 2020
…2320) * Add oauth config * Add stateless input * Add request and basic config * Create v2 input and basic transforms * Refactor and set up basic requester structure * Run fmt * Set tests and fix tpl * basic processing structure * Add pagination mechanism * Publish the events * Add check redirect and oauth tests * Deprecate old httpjson and include both * Return default value if execution is empty * wip * Add split * Handle request errors and pagination end * Add date functions for templates and tests * Add getRFC5988Link functionality to templates * Switch between v1/v2 based on config flag * Add cursor * Add rate limit * Put back original filebeat.yml * Add deprecation warning for old httpjson version * Add transform tests * Initial doc changes * Add more debug logs and split tests * Ignore empty values on set and append * Allow content type and accept override and change redirect default * Add add and toInt functions * Support array responses * Add tests cases and minor changes * Add changelog entry * Do not copy mutex on delete transform * Add PR suggestions: - Modify context done error log - Change is_v2 config bool for string config_version - Change retryable logger to be created from input logger * Documentation fixes (cherry picked from commit 47d8941)
marc-gr
added a commit
that referenced
this pull request
Dec 9, 2020
…22920) * Add oauth config * Add stateless input * Add request and basic config * Create v2 input and basic transforms * Refactor and set up basic requester structure * Run fmt * Set tests and fix tpl * basic processing structure * Add pagination mechanism * Publish the events * Add check redirect and oauth tests * Deprecate old httpjson and include both * Return default value if execution is empty * wip * Add split * Handle request errors and pagination end * Add date functions for templates and tests * Add getRFC5988Link functionality to templates * Switch between v1/v2 based on config flag * Add cursor * Add rate limit * Put back original filebeat.yml * Add deprecation warning for old httpjson version * Add transform tests * Initial doc changes * Add more debug logs and split tests * Ignore empty values on set and append * Allow content type and accept override and change redirect default * Add add and toInt functions * Support array responses * Add tests cases and minor changes * Add changelog entry * Do not copy mutex on delete transform * Add PR suggestions: - Modify context done error log - Change is_v2 config bool for string config_version - Change retryable logger to be created from input logger * Documentation fixes (cherry picked from commit 47d8941)
This was referenced Dec 14, 2020
6 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Creates an initial implementation of the new Httpjson input.
Why is it important?
HTTPJSON is too specific to our particular modules use cases and is hard to extend or reuse out of them. For this we wanted to do an effort to generalize the input so it can be used in a more flexible way.
Checklist
CHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.Author's Checklist
How to test this PR locally
Then in
x-pack/filebeat
runmage build && ./filebeat -e -v
and check the output.Related issues