Closed u2young closed 3 years ago
sortByTime
setting is only for sorting log events inside each batch before sending it from Logback to Loki. It is designed to prevent message loss when Loki rejects old messages with 'entry out of order' error. So if you don't see 'entry out of order' error, it means that sortByTime
works as expected.
This setting has nothing to do with how Loki stores/returns these events or how Grafana displays them. So, if I didn't miss anything, the issue you describe doesn't seem to be on Loki4j's side.
Please let me know if you have any questions.
thx
I hope the log will be sorted in the same way as before after Loki restarts
PS: