Rotating Logfiles

How does loki/promtail handle rotating log files?
Could it be possible that the log file gets somehow blocked by promtail?

I currently have a python application which is writing ~ 5GB of logs every day which i am compressing from at regular intervals to save disk space.
Firstly, the file is renamed and then it gets compressed.
Is it possible that promtail will block this process while processing/reading it?

Please moderate your language on this public forum.

Antony.

On a windows system, yes this is possible.
On most linux filesystems I would not expect any blocking.

Hey,
is there a way to avoid Promtail from blocking the rotating file?
In my case the file can not rotate, because its blocked by Promtail

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