enable the MustExist flag when starting a tailer on a fail, this will cause the tail to fail fast and allow promtail to attempt to re-open the file. (#2491)

pull/2489/head
Ed Welch 5 years ago committed by GitHub
parent 555c46678e
commit 44f8dc3e46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      pkg/promtail/targets/file/tailer.go

@ -49,6 +49,7 @@ func newTailer(logger log.Logger, handler api.EntryHandler, positions positions.
Follow: true,
Poll: true,
ReOpen: true,
MustExist: true,
Location: &tail.SeekInfo{
Offset: pos,
Whence: 0,

Loading…
Cancel
Save