-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Add an option to control the maximum size of JSON output #2393
Comments
On every flush call (applicable for all output plugins), they receive a Chunk which contains N records. In the case of the HTTP output plugin, the |
@edsiper, you write "they receive a Chunk which contains N records". Is it possible to set a maximum value for N? |
it's not possible, our chunks are near 2MB, all records in the chunk are under the same tag |
Then, is it possible to reduce the chunk size? I found the |
FWIW, I have made some tests with a big log file. I saw an average size of 3.5 MB for the POST requests. This of course depends on formatting options (like This does not seem much but in an infrastructure with many |
FWIW, this is very similar to #1938. If we can control the max chunk size (per output plugin) then we can indirectly control the size of the JSON payload. |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
This issue is still creating problems in some of our workflows. |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
This issue is still creating problems in some of our workflows. |
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 5 days. Maintainers can add the |
This issue is still creating problems in some of our workflows. |
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 5 days. Maintainers can add the |
This issue is still creating problems in some of our workflows. |
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 5 days. Maintainers can add the |
This issue is still creating problems in some of our workflows. |
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 5 days. Maintainers can add the |
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 5 days. Maintainers can add the |
This issue is still creating problems in some of our workflows. |
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 5 days. Maintainers can add the |
This issue is still creating problems in some of our workflows. |
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 5 days. Maintainers can add the |
This issue is still creating problems in some of our workflows. |
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 5 days. Maintainers can add the |
This issue is still creating problems in some of our workflows. |
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 5 days. Maintainers can add the |
This issue is still creating problems in some of our workflows. |
Running into this issue as well. Here's my vote |
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 5 days. Maintainers can add the |
Not stale |
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 5 days. Maintainers can add the |
This issue was closed because it has been stalled for 5 days with no activity. |
Not stale |
When using an output plugin like
http
to send JSON data, one can mainly choose between thejson_lines
andjson
formats.With
json_lines
, every log entry triggers a POST request, which implies a significant overhead, both on the network and on the receiving end.With
json
, a single POST request can group multiple log entries. This is good. However, if there are many entries to send, this can result in sending a huge POST request that the receiver might struggle to handle.It would be useful to be able to control the maximum size of the JSON output. It could be a maximum number of log entries or a maximum number of bytes.
The text was updated successfully, but these errors were encountered: