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
Because the journal reader starts from the very beginning of the journal (i.e., not even the current boot, but the very first entry in the journal), promtail may end up sending extremely old logs to ingesters and getting errors back:
level=error ts=2019-08-19T18:59:05.693794932Z caller=client.go:185 component=client host=localhost:3100 msg="final error sending batch" status=400 error="server returned HTTP status 400 Bad Request (400): sample for 'logs' has timestamp too old: 1562712027507"
These errors will go away once the positions file is updated, but will still appear when a user uses journal reading in promtail for the first time.
To work around this, the journal config should be updated to support a new field called from that takes a relative timestamp:
Because the journal reader starts from the very beginning of the journal (i.e., not even the current boot, but the very first entry in the journal), promtail may end up sending extremely old logs to ingesters and getting errors back:
level=error ts=2019-08-19T18:59:05.693794932Z caller=client.go:185 component=client host=localhost:3100 msg="final error sending batch" status=400 error="server returned HTTP status 400 Bad Request (400): sample for 'logs' has timestamp too old: 1562712027507"
These errors will go away once the positions file is updated, but will still appear when a user uses journal reading in promtail for the first time.
To work around this, the journal config should be updated to support a new field called
from
that takes a relative timestamp:Implementation
With the
from
field present, the journal reader has to do the following:from
, use thefrom
date to initialize the journal entry. Entries will be lost.from
, use the cursor as the start point. No entries will be lost.from
date to initialize the journal reader. Old entries will not be imported into Loki.The text was updated successfully, but these errors were encountered: