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 server sink: accept batch log events #18191

Closed
happysalada opened this issue Aug 9, 2023 · 1 comment
Closed

http server sink: accept batch log events #18191

happysalada opened this issue Aug 9, 2023 · 1 comment
Labels
type: feature A value-adding code addition that introduce new functionality.

Comments

@happysalada
Copy link

A note for the community

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Use Cases

logging on the browser side can be expensive if every single logs generates an http request to the http_server sink. Having a batching strategy would reduce the need to make individual requests for every single log event.

Attempted Solutions

No response

Proposal

No response

References

No response

Version

master

@happysalada happysalada added the type: feature A value-adding code addition that introduce new functionality. label Aug 9, 2023
@jszwedko
Copy link
Member

Hi @happysalada ,

The http_server allows for batches of events to be sent by configuring framing.method to indicate how the events are split up. The most common split would be newline_delimited. That is the config would look like:

[sources.source0]
address = "0.0.0.0:8080"
type = "http"
framing.method = "newline_delimited"

You can see all available options here: https://vector.dev/docs/reference/configuration/sources/http_server/#framing

I believe that should work for you so I'll close this issue but let me know if it does not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature A value-adding code addition that introduce new functionality.
Projects
None yet
Development

No branches or pull requests

2 participants