pull all logs from in a time range

Hi team grafana!

Just wanted to make sure because it is not straight forward from the documentation,
But what is the correct way to pull logs from a given time range - in a way that guaranties retrieval of all log records?

For example, if I requested an interval I’m not assured to get all the logs in the interval, so how can I safely move to the next interval?

The same goes for the limit, I can limit the number of records to (say) 1000 and then the next request should have the max timestamp from the previous request as it’s start input, but then again, I’m not assured to get all records this way either,

So I need to know if there’s a recommended way to do that?

Why do you say “If I requested an interval I’m not assured to get all the logs
in the interval”?

Can you give us an example?

Antony.

Hi, thanks for your reply.

The obvious case in my opinion is, lets say I requested a 5 minutes interval and there are 1 million log records in this interval, will Loki api retrive all of them?

Anyway my question is what would be the recommended way to get all logs in a given time range.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.