-
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][HTTP Endpoint] Add a functionality to decode gzip content and process the ndjson data #31005
Comments
Pinging @elastic/security-external-integrations (Team:Security-External Integrations) |
Regarding gzip, what I would expect is that incoming POST requests that contain And similarly for requests with |
The two features are essentially independent and it would be easier to review if the changes were contributed as two separate PRs. |
@andrewkroh after discussing with the field team and Zscaler, we have a few users keen to get CloudNSS up and running, but we're blocked by the gzip support. Do you think someone could work on this sooner rather than later? |
Cloudflare Logpush is one of the integration we have planned, and will leverage the http_endpoint input. Looks like like they require gzip support for their events too: https://developers.cloudflare.com/logs/about/ |
Accept requests with Content-Encoding: gzip. Closes elastic#31005
Yes. Here's a PR to add it. #31061 No changes were required to support NDJSON. That already works today with |
I was thinking about handling of ndjson and it is more fault tolerant than using the encoding/json decoder because a corrupted message will not break the entire stream following the corrupted message, while in the case of the stream decode, it will (and depending on the approach taken to error handling may lose all messages for one corrupted message). To make use of this observation, when working on ndjson you first need to split the input stream on newlines and then work on each message individually, potentially filling the event with a |
Accept requests with Content-Encoding: gzip (or x-gzip). There is a pool of gzip readers to improve performance by reducing allocations. Closes #31005
…31061) Accept requests with Content-Encoding: gzip (or x-gzip). There is a pool of gzip readers to improve performance by reducing allocations. Closes elastic#31005
…31061) Accept requests with Content-Encoding: gzip (or x-gzip). There is a pool of gzip readers to improve performance by reducing allocations. Closes elastic#31005
Accept requests with Content-Encoding: gzip (or x-gzip). There is a pool of gzip readers to improve performance by reducing allocations. Closes #31005
This is a request for the following feature to be added to the http_endpoint input.
The text was updated successfully, but these errors were encountered: