Fluentd : entry out of order for stream

I am new to fluentd logging. I am trying to implement centralized logging for my microservice architecture. I am using grafana , loki and fluentd together for my logging stack. For me some log lines from few microservices are not visible in grafana loki logs. When I looked into the logs for fluentd I am seeing following error which I suspect could be the root cause of the problem.

2021-10-31 16:22:33 +0000 [warn]: #0 failed to write post to http://LOKI_IP:3100/loki/api/v1/push (400 Bad Request entry with timestamp 2021-10-31 16:22:14 +0000 UTC ignored, reason: 'entry out of order' for stream: {agent="fluentd", host="ward_workstation", job="varlogs"},
entry with timestamp 2021-10-31 16:22:20 +0000 UTC ignored, reason: 'entry out of order' for stream: {agent="fluentd", host="ward_workstation", job="varlogs"},

Can anyone help me out here to resolve this issue?

Thanks for the help.

This is down to Loki, you need to step up to Loki 2.4+.