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

http: Save the request or response body independently #6784

Merged
merged 1 commit into from
Apr 9, 2018

Conversation

adriansr
Copy link
Contributor

@adriansr adriansr commented Apr 5, 2018

This patch adds two new configuration options to the http protocol plugin in packetbeat: include_request_body_for and include_response_body_for. They work in a similar way to include_body_for, but apply only to the request or response bodies.

When include_body_for is also specified, the behavior is as follows:

include_body_for: [A]
include_request_body_for: [B]
include_response_body_for: [C]

Requests bodies will be included if the content-type matches either A or B, and response bodies if it is A or C.

This patch adds two new configuration options to the http protocol
plugin in packetbeat: `include_request_body_for` and
`include_response_body_for`.  They work in a similar way to
`include_body_for`, but apply only to the request or response bodies.

When `include_body_for` is also specified, the behavior is as follows:

  include_body_for: [A]
  include_request_body_for: [B]
  include_response_body_for: [C]

Requests bodies will be included if the content-type matches either A or
B, and response bodies if it is A or C.
Copy link
Member

@andrewkroh andrewkroh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@andrewkroh andrewkroh merged commit 7194ab2 into elastic:master Apr 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants