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

Change batching options from configuration not working #67

Open
AmitaKhatri opened this issue Nov 23, 2020 · 1 comment
Open

Change batching options from configuration not working #67

AmitaKhatri opened this issue Nov 23, 2020 · 1 comment

Comments

@AmitaKhatri
Copy link

Hi,

I am trying to change the default options of batching and they work when I override from code but the configuration is not working. I used below configuration in my project but it stops adding any further logs after adding the first one. Am I doing something wrong here?

"WriteTo": [ { "Name": "Graylog", "Args": { "hostnameOrAddress": "localhost", "port": "2548", "transportType": "Tcp", "batchSizeLimit": 10, "period": 2, "QueueLimit": 1000 } } ]

@Ghostbird
Copy link

I've got the same issue. There isn't any documentation on how to achieve this. What's worse, I read the source code, and it turns out that the HTTP transport doesn't batch at all, so there's no point to it for me anyway. It doesn't send a single HTTP message containing a bulk GELF message, instead it just sends separate HTTP messages for each log event. It just waits until the batch threshold is met, and then sends them all in parallel. Since Graylog server doesn't seem to support HTTP/3 GELF inputs (which is the only protocol with which this could theoretically be an improvement) this means that the performance will probably be significantly worse than when you do not batch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants