You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
With the new cloudflare scraper after 168 hours it stops running as it tries to fill in log holes for older times.
The error below prints for a stream that has this issue and then it stops trying to get anything again from that zone: 5 errors: HTTP status 400: bad query: error parsing time: invalid time range: too early: logs older than 168h0m0s are not available ; HTTP status 400: bad query: error parsing time: invalid time range: too early: logs older than 168h0m0s are not available ; HTTP status 400: bad query: error parsing time: invalid time range: too early: logs older than 168h0m0s are not available ; HTTP status 400: bad query: error parsing time: invalid time range: too early: logs older than 168h0m0s are not available ; HTTP status 400: bad query: error parsing time: invalid time range: too early: logs older than 168h0m0s are not available
I will also note that If I clear loki it will start running again but this is not a complete solution either and retention settings to less than 168h or reject_old_samples of less don't seem to help.
To Reproduce
Steps to reproduce the behavior:
Started Loki
Started Promtail main-4f2f088 with cloudflare scrape targets (mutiple of them)
Describe the bug
With the new cloudflare scraper after 168 hours it stops running as it tries to fill in log holes for older times.
The error below prints for a stream that has this issue and then it stops trying to get anything again from that zone:
5 errors: HTTP status 400: bad query: error parsing time: invalid time range: too early: logs older than 168h0m0s are not available ; HTTP status 400: bad query: error parsing time: invalid time range: too early: logs older than 168h0m0s are not available ; HTTP status 400: bad query: error parsing time: invalid time range: too early: logs older than 168h0m0s are not available ; HTTP status 400: bad query: error parsing time: invalid time range: too early: logs older than 168h0m0s are not available ; HTTP status 400: bad query: error parsing time: invalid time range: too early: logs older than 168h0m0s are not available
I will also note that If I clear loki it will start running again but this is not a complete solution either and retention settings to less than 168h or reject_old_samples of less don't seem to help.
To Reproduce
Steps to reproduce the behavior:
{job="cloudflare"}
Expected behavior
Logs to be streaming in, which does work for the first few days.
Environment:
The text was updated successfully, but these errors were encountered: