Skip to content
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

Cherry-pick #22320 to 7.x: [filebeat][httpjson] Initial implementation of httpjson v2 #22920

Merged
merged 1 commit into from
Dec 9, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
[filebeat][httpjson] Initial implementation of httpjson v2 (#22320)
* 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)
  • Loading branch information
marc-gr committed Dec 9, 2020
commit b862b8f97b635d6715add8a4e01c27752b599f66
1 change: 1 addition & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d
- Improve Nats filebeat dashboard. {pull}22726[22726]
- Add support for UNIX datagram sockets in `unix` input. {issues}18632[18632] {pull}22699[22699]
- Add `http.request.mime_type` for Elasticsearch audit log fileset. {pull}22975[22975]
- Add new httpjson input features and mark old config ones for deprecation {pull}22320[22320]

*Heartbeat*

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading