-
Notifications
You must be signed in to change notification settings - Fork 58
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
the logs are not sent after "something" happened. #68
Comments
Hi! Sorry for not answering earlier. I have a hunch that the issue is probably "caused" by the latest patch, but has been there for a while, just in another form. This is probably fixable by introducing a new queue for serialized logs ready for sending. |
A fix that works as of now is to switch from protobuf to JSON / disable batching for protobuf. |
I already use JSON... this is my configuration: What else could I do? |
This is more an open question than an issue...
I have a couple of services that use winston-loki as transport to send the logs data to Loki. It's configured to send logs as batch (as default).
I noticed that sometimes (in moments where one of the services is a little bit "stressed" and received many messages) the transport simply stops to send logs to Loki, and therefore, I find no logs in there. The service is continuing to do stuff, as I can see that the Console transport of winston is still working, and displaying correctly things on the console.
The problem is that it never sends a log again, so I've lost even days of logs...
So my question is: what can be the reasons why the batching stopped sending logs? And when it stopped, how can I automatically make it restart sending the logs that it has stacked until that moment?
thank you,
Giacomo.
The text was updated successfully, but these errors were encountered: