Replies: 3 comments 3 replies
-
Hi @tisonv! I would be very grateful if you will provide the sample app with the issue. I think the main issue that Loki (probably?) rejects the logs, because they are formatted incorrectly. But that should not be a valid point (what is the reason for that formatting?). And about the event log drop, please, check the next lines of code. You could see there that if we got the unsuccessful status code, we just drop some events for avoiding the bottleneck |
Beta Was this translation helpful? Give feedback.
-
Hey ! Here you are.
|
Beta Was this translation helpful? Give feedback.
-
oh yes I added a test to check if the field is present and everything is fine. There is no more problem there. What I mean is failure to format blocks the logging process entirely. |
Beta Was this translation helpful? Give feedback.
-
Hello !
I had an issue in my custom
LokiJsonTextFormatter
where I was expecting a field that was not always in thelogEvent.Properties
.The formatting crashes and the
logEvent
stays in the queue.The sink then tries to format it every time and fails every time prohibiting any further
logEvent
to be published.While I managed to track that particular issue in my formatter, I could get the same problem with other use-cases.
Would it be possible to push a message to Loki with the failed formated log ? after n retries ?
Unlike a network problem, I don't think a formatting issue will ever resolve itself in the next loop.
Thanks !
Beta Was this translation helpful? Give feedback.
All reactions