Open jtackaberry opened 1 year ago
Some logs are lost when tailing with a json parser. Logs will not be lost after removing the json parser.
These logs seem to be dropped, why are they dropped?
It will drop the stream if the tailer is blocked or the queue is full.
I found this in the code, how to avoid dropping logs?
Describe the bug
Running this works fine:
However, running this:
results in dozens of log lines per second from Loki that look like:
On the client side, the tail seems to work fine. It's just a constant stream of log lines on the server side.
To Reproduce Steps to reproduce the behavior:
logcli
selecting a valid stream for the environment but include a json parser in the LogQL queryExpected behavior
Expected similar log output to queries without json parser.
Environment:
Test environment has:
Screenshots, Promtail config, or terminal output
Here's Loki's full config: