Promtail struggles with log rotaion

Hello,

I am trying to run promtail on a host and send the files to remote loki server,
So far so good the data is being ingested and works perfect,
However when there is a log rotation happening at the client it seems that the promtail cant handle new file ,
I inspected the positions.yaml and it seems it searches for a line no on the log that apperantly isnt there [makes sense since the log file is rotated and the data is fresh]

Anyone knows how to overcome this ?
Thanks for your asisstance

p.s. when i delete the positions yaml. rerun the promtail i see correct data [fresh but correct]

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